Skip to content

Commit 8b25a0b

Browse files
committed
Allow cors for fonts
1 parent 5c6d1f1 commit 8b25a0b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nginx/default.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ server {
1717
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
1818
fastcgi_param PATH_INFO $fastcgi_path_info;
1919
}
20+
21+
location ~* \.(eot|ttf|woff|woff2)$ {
22+
add_header Access-Control-Allow-Origin *;
23+
}
2024
}

0 commit comments

Comments
 (0)