Hello,
I’m trying to make an Axios request from localhost to a netlify Edge Function and I get “Origin is not allowed by Access-Control-Allow-Origin. Status code: 200” error.
I have the following netlify.toml
[[headers]]
for = "/*"
[headers.values]
Access-Control-Allow-Origin = "*"
[[edge_functions]]
function = "login"
path = "/login"
If I test it locally by running “netlify dev”, the header is set and it works. But if I build it, it doesn’t work.