diff --git a/global/server/static-files.conf b/global/server/static-files.conf index aeea70c..da52a95 100644 --- a/global/server/static-files.conf +++ b/global/server/static-files.conf @@ -31,10 +31,12 @@ location ~* \.(?:css|js)$ { location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ { expires 1y; access_log off; + add_header Access-Control-Allow-Origin *; } # Don't record access/error logs for robots.txt. location = /robots.txt { + try_files $uri $uri/ /index.php?$args; access_log off; log_not_found off; } \ No newline at end of file