Skip to content

Commit

Permalink
fix(docs): fix cors and csp
Browse files Browse the repository at this point in the history
  • Loading branch information
jippi committed May 15, 2024
1 parent 6c3b17c commit 2fd44b6
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
# Netlify Config, https://www.netlify.com/docs/netlify-toml-reference/
[build]
base = "/"
publish = "runatlantis.io/.vitepress/dist/"
command = "pnpm website:build"
base = "/"
publish = "runatlantis.io/.vitepress/dist/"
command = "pnpm website:build"

[[redirects]]
from = "/guide/getting-started.html"
to = "/guide/"
status = 301
force = true
from = "/guide/getting-started.html"
to = "/guide/"
status = 301
force = true

[[redirects]]
from = "/docs/atlantis-yaml-reference.html"
to = "/docs/repo-level-atlantis-yaml.html"
status = 301
force = true
from = "/docs/atlantis-yaml-reference.html"
to = "/docs/repo-level-atlantis-yaml.html"
status = 301
force = true

[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
Content-Security-Policy = "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:"
Cache-Control = "public, max-age=86400, must-revalidate"
Strict-Transport-Security = "max-age=86400; includeSubDomains; preload"
Referrer-Policy = "no-referrer"
X-Content-Type-Options = "nosniff"
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
Content-Security-Policy = "default-src 'self'; frame-src 'self' https://app.netlify.com; script-src 'self' https://www.google-analytics.com https://www.googletagmanager.com https://bh4d9od16a-3.algolianet.com 'unsafe-inline'; style-src 'self' https://fonts.googleapis.com https://bh4d9od16a-3.algolianet.com 'unsafe-inline'; img-src 'self' data:; font-src 'self' data: https://fonts.googleapis.com https://fonts.gstatic.com; connect-src 'self' https://www.google-analytics.com https://www.googletagmanager.com https://bh4d9od16a-3.algolianet.com"
Cache-Control = "public, max-age=86400, must-revalidate"
Strict-Transport-Security = "max-age=86400; includeSubDomains; preload"
Referrer-Policy = "no-referrer"
X-Content-Type-Options = "nosniff"

[[headers]]
for = "*.html"
[headers.values]
Content-Type = "text/html; charset=UTF-8"
for = "*.html"
[headers.values]
Content-Type = "text/html; charset=UTF-8"

0 comments on commit 2fd44b6

Please sign in to comment.