3

I have written a chrome extension which adds some cookie to domain in which my web app is running.

The API chrome.cookie.set() works for all domains except when I use the domain as "localhost". If I try to access the web app running locally using the domain "127.0.0.1" or "0.0.0.0" the API "chrome.cookies.set()" works as expected.

This does not work only when I use the domain as "localhost". How Can I fix this issue for "localhost" domain?

Bourne
  • 1,905
  • 13
  • 35
  • 53

1 Answers1

4

Try cookie Domain = null or set the cookie to " " for localhost.

Kostadin
  • 405
  • 3
  • 14