Skip to content

Commit

Permalink
Fix CORS error by updating netlify.toml of website
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-hiller committed Oct 3, 2024
1 parent 64ab200 commit b5f7f4d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions website/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,12 @@
for = "/build/*"
[headers.values]
cache-control = "public, max-age=31536000, s-maxage=31536000, immutable"
[[headers]]
for = "/assets/*"
[headers.values]
cache-control = "public, max-age=31536000, s-maxage=31536000, immutable"
[[headers]]
for = "/assets/*-index.min.js"
[headers.values]
# This is a temporary solution to be able to load the Valibot library into the playground iframe
access-control-allow-origin = "*"

0 comments on commit b5f7f4d

Please sign in to comment.