Skip to content

Commit

Permalink
TRY: WASM again
Browse files Browse the repository at this point in the history
  • Loading branch information
rydmike committed Nov 16, 2024
1 parent 64daf8d commit 3618b25
Showing 1 changed file with 6 additions and 52 deletions.
58 changes: 6 additions & 52 deletions example/netlify.toml
Original file line number Diff line number Diff line change
@@ -1,53 +1,7 @@
# Global headers for all paths and domains
[[
headers
]]
for = "/*"
[
headers.values
]
Cross-Origin-Embedder-Policy = "require-corp"
Cross-Origin-Opener-Policy = "same-origin"
# Add additional security headers
X-Frame-Options = "DENY"
X-Content-Type-Options = "nosniff"
Referrer-Policy = "strict-origin-when-cross-origin"
Permissions-Policy = "interest-cohort=()"

# Specific headers for WASM files
[[
headers
]]
for = "/*.wasm"
[
headers.values
]
Content-Type = "application/wasm"

# Specific configuration for the custom domain
[[
redirects
]]
from = "https://playground.flexcolorscheme.com/*"
to = "/index.html"
status = 200
force = true
headers = {Cross-Origin-Embedder-Policy = "require-corp", Cross-Origin-Opener-Policy = "same-origin"}

# Specific configuration for the Netlify domain
[[
redirects
]]
from = "https://themesplayground.netlify.app/*"
to = "/index.html"
status = 200
force = true
headers = {Cross-Origin-Embedder-Policy = "require-corp", Cross-Origin-Opener-Policy = "same-origin"}

# Fallback redirect for SPA
[[
redirects
]]
from = "/*"
to = "/index.html"
status = 200
[[headers]]
for = "/*"
[headers.values]
Cross-Origin-Embedder-Policy = "require-corp"
Cross-Origin-Opener-Policy = "same-origin"
Content-Security-Policy = "upgrade-insecure-requests"

1 comment on commit 3618b25

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.