Nginx allow cross domain ajax requests
To enable Nginx for Cross Origin calls add this in nginx configuration for the domain :
location /{
add_header ‘Access-Control-Allow-Origin’ ‘http://subdomain.mind-geek.net’; add_header ‘Access-Control-Allow-Credentials’ ‘true’; add_header ‘Access-Control-Allow-Methods’ ‘GET’;
}
That’s it, it will enable GET requests from http://subdomain.mind-geek.net to the configured domain.










