diff --git a/conf/nginx.conf b/conf/nginx.conf index ec2c803..dacb947 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -22,7 +22,7 @@ location __PATH__/ { } # CORS location ~ .(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$ { - add_header "Access-Control-Allow-Origin: '*'"; # Decide here whether you want to allow all or only a particular domain + more_set_headers "Access-Control-Allow-Origin: '*'"; # Decide here whether you want to allow all or only a particular domain root __FINALPATH__/; # Properly set the path here }