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
withCredentials is not working #662
Comments
Can you compare the request headers of the two and post it here. |
Server not requiring credentials Accept POST REQUEST HEADERS Accept |
Server requiring credentials Accept |
You won't need |
Yes, looks like. Still I get 401 authorized. I wrote a bare vanilla file upload using http.post today and this worked. Attaching code here. $http.post(uploadUrl, fd, { |
Compare the authorization header between the working http.post and upload and see if that gives you a clue. |
These three headers are not send in case of upload : Authorization, Cookie and Content-Type. Here is how I am invoking upload after your suggestions. $upload.upload({ |
The config object just before http call ( Line:70 angular-file-upload-all.js ) has withCredentials : true. |
What browser/version? |
Firefox latest version, I guess 36/37. |
I am passing 'withCredentials : true' for an API requiring basic API authentication. This doesn't seem to work. I am able to successfully upload on another setup of same API without credentials. CORS is set up properly on this API, other GET / POST calls ( CORS ) work on this API.
Usage :
The text was updated successfully, but these errors were encountered: