set $origin '*';
if ($http_origin) {
set $origin "$http_origin";
}
add_header Access-Control-Allow-Origin "$origin";
add_header Access-Control-Allow-Credentials "true";
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,
If-Modified-Since,Cache-Control,Content-Type,Authorization,Authori-zation';
if ($request_method = 'OPTIONS') {
return 204;
}Navigating to current location
Response to preflight request doesn't pass access control check: The value o