Next.js Discord

Discord Forum

public api route blocked by preflights CORS OPTIONS

Unanswered
Boykin Spaniel posted this in #help-forum
Open in Discord
Avatar
Boykin SpanielOP
Hello,
I want to create a public API route accessible in POST. I modified my next.config.js to add the headers and fix CORS. But the addition of headers is done twice in the POST response. How to do ?
Image
Image
Image

0 Replies