Skip to content

Commit

Permalink
Set CORS headers for dummy APIs (#1108)
Browse files Browse the repository at this point in the history
Currently trying to fetch them fails due to CORS.
  • Loading branch information
illicitonion authored Oct 22, 2024
1 parent b096001 commit f3c51ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions org-cyf-itp/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ to = "/.netlify/functions/:splat"
status = 200
[functions]
external_node_modules = ["node-fetch"]

[[headers]]
for = "/dummy-apis/*"
[headers.values]
Access-Control-Allow-Origin = "*"

0 comments on commit f3c51ba

Please sign in to comment.