Reponding CORS info to OPTIONS request #2177
Unanswered
spectroman
asked this question in
Q&A
Replies: 1 comment 7 replies
-
Maybe https://echo.labstack.com/middleware/cors/ This is how CORS middleware handles OPTIONS requests Line 120 in 6df1c35 |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When trying to rebuild a backend from ruby to golang, we have built a new server using Echo.
Surprisingly, now that I have built a lot of code and am able to receive requests from the frontend, which is a Angular application, nothing works, mostly because I could not find a way to respond OPTIONS request with CORS headers.
Angular will use as pre-flight for any request a OPTIONS call beforehand to check CORS config... it is not something that we can change because it comes from the inner workings of Angular.
What am I missing? How can I make Echo reply to OPTIONS with CORS headers?
Beta Was this translation helpful? Give feedback.
All reactions