-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Successful POST request's promise is rejected #29
Comments
What's the error that it rejects with? What do you see in the console? Without more information I can only guess, but I suspect it's because you're using |
Feel free to reopen this if there's more I can do to help. |
@bryanrsmith the error response looks like so: Is it possible to make CORS requests with the fetch client then if I exclude |
Whoops. Trying to
Github indicates it supports CORS so I wonder what's going on. Is this an issue with the fetch-client? |
The Hope this helps. |
It looks like this might be a dead-end for my current implementation, as my |
You can set a no-cors mode like the code below var myHeaders = new Headers(); return this.http.fetch(url, myInit); |
Hi, apologies for such a trivial problem but I'm really scratching my head here.
In my view model I configure the fetch client (example is attempting Github OAuth) like so:
After successfully authorizing the client and receiving an verification code, I request an access token:
The request returns a 200 status with the appropriate body, however the
Promise
returned is always rejected and I am unable to access the response. i.e.The text was updated successfully, but these errors were encountered: