Multiple Domain CORS
Andrey Oktyabrskiy
ano at bestmx.net
Fri Aug 10 12:46:32 UTC 2018
On 10.08.2018 15:17, Andrey Oktyabrskiy wrote:
> ### /etc/nginx/inc/cors_options.inc
> if ($request_method = 'OPTIONS') {
> add_header Access-Control-Allow-Credentials true;
> add_header Access-Control-Allow-Origin $cors_origin;
> add_header Access-Control-Allow-Methods OPTIONS;
- add_header Access-Control-Allow-Methods OPTIONS;
+ add_header Access-Control-Allow-Methods $cors_method;
More information about the nginx
mailing list