Chrome Extension in incognito mode

Viewed 4158

I have an extension for Chrome that makes ajax request to my site. The site uses sessions. So, in response of the ajax request to the site, the Set-Cookie header is returned with some session identifier and a this entry appears in the cookie section of the extension DevPanel (of the backgroud page). But, session id in the DevPanel browser for the site is a completely different. Extension is allowed for incognito mode.

In normal mode, the cookies are identical in the DevPanels of the extension and the browser. I understand that cookies for normal and incognito modes should be different, but why are these values ​​different for the extension allowed for incognito mode?

Am I right and extensions allowed for incognito mode, work in normal mode?

3 Answers

Just add this to your manifest.json file

{
  "name": "Test",
  "version": "0.1",
  "description": "Tester",
  "manifest_version": 2,
   "incognito": "split" // add this line
}

Read more about the incognito options in the official docs

Related