Hey, I was thinking that FileUploader class could automatically add X-Requested-With: XMLHttpRequest header. I think it makes sense because all requests are Ajax request, although I'm not sure this is correct behaviour according to the standard.
I've noticed there's already commented out setRequestHeader() so at least it would be nice if I could set it manually.
Hey, I was thinking that [FileUploader](https://github.com/valor-software/ng2-file-upload/blob/master/components/file-upload/file-uploader.ts) class could automatically add `X-Requested-With: XMLHttpRequest` header. I think it makes sense because all requests are Ajax request, although I'm not sure this is correct behaviour according to the standard.
I've noticed there's already commented out [setRequestHeader()](https://github.com/valor-software/ng2-file-upload/blob/master/components/file-upload/file-uploader.ts#L331) so at least it would be nice if I could set it manually.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Hey, I was thinking that FileUploader class could automatically add
X-Requested-With: XMLHttpRequestheader. I think it makes sense because all requests are Ajax request, although I'm not sure this is correct behaviour according to the standard.I've noticed there's already commented out setRequestHeader() so at least it would be nice if I could set it manually.