Skip to content

Commit 492b06b

Browse files
authored
🐛 delete access header (#72)
* 🐛 delete access header * 🐛 fix access header
1 parent dd53eba commit 492b06b

File tree

1 file changed

+4
-11
lines changed
  • personalization-webcomponents/docker/nginx

1 file changed

+4
-11
lines changed
Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
location / {
2-
add_header 'Access-Control-Allow-Origin' $http_origin;
3-
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS' always;
4-
5-
location /src/ {
1+
location /src/ {
62
expires 365d;
7-
add_header 'Access-Control-Allow-Origin' $http_origin;
83
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS' always;
94
add_header Cache-Control "public, no-transform";
10-
}
5+
}
116

12-
location ~ ^/loader-.*\.js$ {
13-
add_header 'Access-Control-Allow-Origin' $http_origin;
7+
location ~ ^/loader-.*\.js$ {
148
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS' always;
159
add_header Cache-Control 'no-cache';
16-
}
17-
}
10+
}

0 commit comments

Comments
 (0)