Skip to content

A platform for community discussion. Free, open, simple.

FIX: Add CORS header for all `/assets/*` (#39031)

David Taylor2790b1731888
diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf
index a5a4c6d604e..4eb5ee3c4f1 100644
--- a/config/nginx.sample.conf
+++ b/config/nginx.sample.conf
@@ -145,6 +145,7 @@ server {
brotli_static on;
gzip_static on;
add_header Cache-Control public,immutable;
+ add_header Access-Control-Allow-Origin *;
# HOOK in asset location (used for extensibility)
# TODO I don't think this break is needed, it just breaks out of rewrite
break;