Adding Headers Breaks COR's with Next.js
Having a weird issue.
I want to post to my API route cross-origin, so I added this to my next.config.js: https://vercel.com/guides/how-to-enable-cors
When I make my post request from the browser like this I get a CORs error:
But when I remove the "content-type" header it works. What the heck is going on?
2 Replies