kapitanluffy
kapitanluffy5mo ago

CORS Preflight did not succeed

I cannot seem to access my api endpoint but when I manually do it in the browser, it works. I attached images of the network tab and the code
No description
No description
Solution:
Fixed it by manually specifying each method instead of using ANY ..for context, I am using sst/ion for IaC...
No description
Jump to solution
3 Replies
kapitanluffy
kapitanluffyOP5mo ago
Using a manual fetch works too
kapitanluffy
kapitanluffyOP5mo ago
I also tried the vanilla client and it does not work
No description
Solution
kapitanluffy
kapitanluffy5mo ago
Fixed it by manually specifying each method instead of using ANY ..for context, I am using sst/ion for IaC
No description

Did you find this page helpful?