mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-08 07:41:41 +08:00
update Caddyfile to fix CORS
This commit is contained in:
parent
9e3f544842
commit
6c4ef67940
1 changed files with 2 additions and 0 deletions
|
|
@ -7,6 +7,8 @@
|
||||||
https://dashboard.NETMAKER_BASE_DOMAIN {
|
https://dashboard.NETMAKER_BASE_DOMAIN {
|
||||||
# Apply basic security headers
|
# Apply basic security headers
|
||||||
header {
|
header {
|
||||||
|
# Enable cross origin access to *.NETMAKER_BASE_DOMAIN
|
||||||
|
Access-Control-Allow-Origin *.NETMAKER_BASE_DOMAIN
|
||||||
# Enable HTTP Strict Transport Security (HSTS)
|
# Enable HTTP Strict Transport Security (HSTS)
|
||||||
Strict-Transport-Security "max-age=31536000;"
|
Strict-Transport-Security "max-age=31536000;"
|
||||||
# Enable cross-site filter (XSS) and tell browser to block detected attacks
|
# Enable cross-site filter (XSS) and tell browser to block detected attacks
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue