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.












