Skip to content

Commit 886dca0

Browse files
joaoantoniocardosopatrickelectric
authored andcommitted
core: tools: nginx: Workaround double allow hitting CORS on browser when developing
1 parent 08c3e04 commit 886dca0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/tools/nginx/nginx.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ http {
4848
listen 80; # IPv4
4949
listen [::]:80; # IPv6
5050

51-
add_header Access-Control-Allow-Origin *;
51+
proxy_hide_header Access-Control-Allow-Origin;
52+
add_header Access-Control-Allow-Origin * always;
5253

5354
# Custom 404 handler that serves Vue.js app with proper 404 status
5455
error_page 404 @fallback;

0 commit comments

Comments
 (0)