mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
DEV: add allow origin header to public javascript files. (#12059)
This commit is contained in:
parent
3b874f1b2d
commit
cc1c4265c1
|
@ -135,6 +135,7 @@ server {
|
||||||
location ~ ^/javascripts/ {
|
location ~ ^/javascripts/ {
|
||||||
expires 1d;
|
expires 1d;
|
||||||
add_header Cache-Control public,immutable;
|
add_header Cache-Control public,immutable;
|
||||||
|
add_header Access-Control-Allow-Origin *;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/assets/(?<asset_path>.+)$ {
|
location ~ ^/assets/(?<asset_path>.+)$ {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user