I have a CORS issue on my netlify functions.
Here's my netlify.toml
but it doesn't help at all.
Anyone can help me with this?
I have a CORS issue on my netlify functions.
Here's my netlify.toml
but it doesn't help at all.
Anyone can help me with this?
You have missed an indent after the for = "/*"
line
[[headers]]
# Define which paths this specific [[headers]] block will cover.
for = "/*"
[headers.values]
Access-Control-Allow-Origin = "*"
Inspect the build log, and you can easily find the rejection of the false rule by Netlify.
More ref - https://answers.netlify.com/t/access-control-allow-origin-policy/1813/2