Skip to content
Discussion options

You must be logged in to vote

I will leave this comment here in case someone runs into a similar issue.

I was testing my API through an application served on a different port (both localhost), this made it a cross site request.

Cross site requests get processed into two calls an options call to ensure the server accepts the type of request you're trying to make and then the actual call you intended to make.

In order to to use non get/post routes I had to setup an .options route to with the appropriate Access-Control-Allow-Origin and Access-Control-Allow-Methods.

Hope that helps!

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #351 on December 09, 2020 04:04.