kapitanluffy
kapitanluffy2mo 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
kapitanluffy2mo ago
Using a manual fetch works too
kapitanluffy
kapitanluffy2mo ago
I also tried the vanilla client and it does not work
No description
Solution
kapitanluffy
kapitanluffy2mo ago
Fixed it by manually specifying each method instead of using ANY ..for context, I am using sst/ion for IaC
No description