Skip to content

Commit 95c7a53

Browse files
committed
Improve static files config
1 parent b9641c4 commit 95c7a53

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

global/server/static-files.conf

+2
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ location ~* \.(?:css|js)$ {
3131
location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ {
3232
expires 1y;
3333
access_log off;
34+
add_header Access-Control-Allow-Origin *;
3435
}
3536

3637
# Don't record access/error logs for robots.txt.
3738
location = /robots.txt {
39+
try_files $uri $uri/ /index.php?$args;
3840
access_log off;
3941
log_not_found off;
4042
}

0 commit comments

Comments
 (0)