Skip to content
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

just curious. why you use native xhr instead of angular's $http? #267

Closed
ralyodio opened this issue Jul 14, 2014 · 7 comments
Closed

just curious. why you use native xhr instead of angular's $http? #267

ralyodio opened this issue Jul 14, 2014 · 7 comments

Comments

@ralyodio
Copy link

No description provided.

@danialfarid
Copy link
Owner

To be able to receive file progress progress event or cancel the upload.

@ralyodio
Copy link
Author

i see. I'm surprised angular's $http doesn't support that.

@danialfarid
Copy link
Owner

Yea it's been like that for a long time angular/angular.js#1934

@marinescudan
Copy link

Hi, do you think that I can use this on a REST architecture, do you think I would have CORS issues?

@ralyodio
Copy link
Author

I have my api on same domain, if your api is on a different domain, then you would need to add CORS headers for the API to authorize the cross-site request. But no, I don't see it being a problem either way.

@danialfarid
Copy link
Owner

Yea CORS requests should work fine.

@danialfarid
Copy link
Owner

Demo is now sending CORS requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants