Browse Source

fix: handle Cookie2 & Set-Cookie2 headers too

(obsolete but still processed by the browsers)
tophf 5 years ago
parent
commit
76bb6bb81c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/background/utils/requests.js

+ 2 - 2
src/background/utils/requests.js

@@ -50,8 +50,8 @@ const HeaderInjector = (() => {
   const headersToInject = {};
   /** @param {chrome.webRequest.HttpHeader} header */
   const isVmVerify = header => header.name === VM_VERIFY;
-  const isNotCookie = header => !/^cookie$/i.test(header.name);
-  const isNotSetCookie = header => !/^set-cookie$/i.test(header.name);
+  const isNotCookie = header => !/^cookie2?$/i.test(header.name);
+  const isNotSetCookie = header => !/^set-cookie2?$/i.test(header.name);
   const isSendable = header => header.name !== VM_VERIFY;
   const isSendableAnon = header => isSendable(header) && isNotCookie(header);
   const apiEvents = {