We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
message-headers
I have created a package message-headers at https://github.com/niftylettuce/message-headers#message-headers that supplies us with standard headers that superagent should not modify if we are in window (browser) environments. Users experience errors like this https://stackoverflow.com/questions/50364832/refused-to-set-unsafe-header-access-control-request-headers-angular-4/50366340 if they attempt to set standard headers that the browser itself is setting. Perhaps if one of the messageHeader.standard headers is passed, we should omit it (e.g. using a similar approach to Lodash's omit method).
superagent
window
messageHeader.standard
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have created a package
message-headers
at https://github.com/niftylettuce/message-headers#message-headers that supplies us with standard headers thatsuperagent
should not modify if we are inwindow
(browser) environments. Users experience errors like this https://stackoverflow.com/questions/50364832/refused-to-set-unsafe-header-access-control-request-headers-angular-4/50366340 if they attempt to set standard headers that the browser itself is setting.Perhaps if one of the
messageHeader.standard
headers is passed, we should omit it (e.g. using a similar approach to Lodash's omit method).The text was updated successfully, but these errors were encountered: