Skip to content

Commit 083a139

Browse files
Tom Atkinsondarrachequesne
authored andcommitted
[fix] Set accept header to */* to support react app proxy (#508)
1 parent af021d7 commit 083a139

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/transports/polling-xhr.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ Request.prototype.create = function () {
219219
} catch (e) {}
220220
}
221221

222+
try {
223+
xhr.setRequestHeader('Accept', '*/*');
224+
} catch (e) {}
225+
222226
// ie6 check
223227
if ('withCredentials' in xhr) {
224228
xhr.withCredentials = true;

0 commit comments

Comments
 (0)