New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't get errors after a post request #213
Comments
Sounds like you're having a problem with CORS. Make sure that your server is setting the headers correctly to accept requests from other origins. |
It's strange because i get this error only if user and pass are wrong otherwise if i type correct login data the promise works well because the server return 200 |
If you dont have access to configure CORS on the server, and are you using Em qua, 27 de jan de 2016 às 14:58, Stefano notifications@github.com
|
Good one |
Hi I have the same problem. $.post(url, params, function() {...}); -> works great axios({ doesnt work. I get allways 'method non allowed' error, and I dont know why, but it sent as request method "OPTIONS" not "POST". thanks |
I'dont know if this (#41) is fixed or not but i've this situation:
but what i see is that the response arrives only if the status is 200 otherwise it doesn't enter in
catch
and even inthen
it just stops.this is what i see when i try to enter wrong credentials in my form:
XMLHttpRequest cannot load http://url/session. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8088' is therefore not allowed access. The response had HTTP status code 401.
EDIT:
this is my setup:
The text was updated successfully, but these errors were encountered: