Closed bobmulder closed 5 years ago
It seems #7 has something to do with it...
I don't have that problem.
When I send a post request on a valid route :
When I send a post request on a route where I throw an exception :
And When I send a post request on a route that doesn't exist :
I figured out that the cors-related headers won't be added when an exception is thrown. I guess #7 is related to my issue
Yes i look this Pull Request ASAP
PR merged, it's ok for you?
I have the same problem :(
Do you use special plugins or components?
It worked out my problem, the error was not in CORS, it's working perfectly for me
I've added your plugin as documented. The
OPTIONS
call goes well, however thePOST
call doesn't work. It will return a200
but I get the message:Failed to load {myapiurl}: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8081' is therefore not allowed access.
. It seems the CORS hearders are missing in myPOST
call:OPTIONS
call:POST
call:I can't find any issues in your code. Any hints?
Kind regards,
Bob