mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 21:37:54 +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/ {
|
||||
expires 1d;
|
||||
add_header Cache-Control public,immutable;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
}
|
||||
|
||||
location ~ ^/assets/(?<asset_path>.+)$ {
|
||||
|
Loading…
x
Reference in New Issue
Block a user