We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b343e28 commit 50d219bCopy full SHA for 50d219b
lib/XMLHttpRequest.js
@@ -169,6 +169,9 @@ exports.XMLHttpRequest = function() {
169
if (this.readyState != this.OPENED) {
170
throw "INVALID_STATE_ERR: setRequestHeader can only be called when state is OPEN";
171
}
172
+ if (!isAllowedHttpHeader(header)) {
173
+ throw "SYNTAX_ERR: This header is not allowed";
174
+ }
175
if (sendFlag) {
176
throw "INVALID_STATE_ERR: send flag is true";
177
0 commit comments