From 95c7a5382731fff2c678fa4a6c543d1531e82961 Mon Sep 17 00:00:00 2001 From: Ashley Rich Date: Sat, 25 Apr 2020 10:22:51 +0100 Subject: [PATCH] Improve static files config --- global/server/static-files.conf | 2 ++ 1 file changed, 2 insertions(+) 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