Sfoglia il codice sorgente

update Caddyfile to fix CORS

Chay Choong 3 anni fa
parent
commit
6c4ef67940
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      docker/Caddyfile

+ 2 - 0
docker/Caddyfile

@@ -7,6 +7,8 @@
 https://dashboard.NETMAKER_BASE_DOMAIN {
         # Apply basic security headers
         header {
+                # Enable cross origin access to *.NETMAKER_BASE_DOMAIN
+                Access-Control-Allow-Origin *.NETMAKER_BASE_DOMAIN
                 # Enable HTTP Strict Transport Security (HSTS)
                 Strict-Transport-Security "max-age=31536000;"
                 # Enable cross-site filter (XSS) and tell browser to block detected attacks