Hi, I’m using express js to handle netlify functions. I need to apply cors rules to all responses so my main site can make requests.
I added this to my netlify.toml file, but no CORS header is being sent.
for = “/*”
Access-Control-Allow-Origin = “https://mysite.com”
I’ve also tried using cors middleware in app.js but I’m not getting any results.
Is there anything else I need to be doing? Thanks