Nginx proxy to Apache - resolve HTTP ORIGIN
- by Fratyr
I have a server setup with nginx serving static content and proxy all PHP/dynamic requests to apache on 127.0.0.1
I'm building an API for my databases, and I need to allow clients by their origin (domain name), rather than just IP. Based on CORS rules.
So when I send an HTTP header header("Access-Control-Allow-Origin:…