mirror of
https://github.com/discourse/discourse.git
synced 2025-04-03 05:39:41 +08:00
cors for fonts, so firefox stays happy
This commit is contained in:
parent
f5d905c215
commit
051fb5bb5b
@ -32,6 +32,12 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
root $public;
|
root $public;
|
||||||
|
|
||||||
|
location ~* \.(eot|ttf|woff)$ {
|
||||||
|
add_header Access-Control-Allow-Origin *;
|
||||||
|
expires 1y;
|
||||||
|
add_header Cache-Control public;
|
||||||
|
}
|
||||||
|
|
||||||
location ~ ^/assets/ {
|
location ~ ^/assets/ {
|
||||||
expires 1y;
|
expires 1y;
|
||||||
add_header Cache-Control public;
|
add_header Cache-Control public;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user