diff --git a/conf/nginx.conf b/conf/nginx.conf index 4f762ac..f3fb881 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -3,12 +3,11 @@ location __PATH__/ { # CORS support - add_header Access-Control-Allow-Origin *; + more_set_headers 'Access-Control-Allow-Origin: *'; # Handling preflight requests if ($request_method = OPTIONS) { - add_header Access-Control-Allow-Methods *; - add_header Access-Control-Allow-Headers *; + more_set_headers 'Access-Control-Allow-Methods: *' 'Access-Control-Allow-Headers: *'; } # Path to source