Browse Source

fix(GM_xmlhttpRequest): regard cookie as a special header

close violentmonkey/violentmonkey#89
Gerald 8 years ago
parent
commit
6a8c00f4ce
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/background/utils/requests.js

+ 1 - 0
src/background/utils/requests.js

@@ -8,6 +8,7 @@ const specialHeaders = [
   'referer',
   'referer',
   'origin',
   'origin',
   'host',
   'host',
+  'cookie',
 ];
 ];
 // const tasks = {};
 // const tasks = {};