DEV: add allow origin header to public javascript files. (#12059)

This commit is contained in:
Vinoth Kannan 2021-02-12 19:37:57 +05:30 committed by GitHub
parent 3b874f1b2d
commit cc1c4265c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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>.+)$ {