Next.js Discord

Discord Forum

How to fix CORS in edge runtime

Answered
Northeast Congo Lion posted this in #help-forum
Open in Discord
Northeast Congo LionOP
I am building a API endpoint for public use that serves to any client on the internet but I ran into CORS error. The available documentation is not enough to solve the issue.
The method I'm implementing is POST and it's runtime is "edge".
Answered by Northeast Congo Lion
The issue is resolved after implementing additional OPTIONS method for preflight request 🤝
View full answer

1 Reply

Northeast Congo LionOP
The issue is resolved after implementing additional OPTIONS method for preflight request 🤝
Answer