0

I use electron 0.36.0 and I have a cookie for a page and this page has a nested frame with a different domain.

I need to somehow keep a cookie alive when going to this frame directly (different domain) and ideally, I want to avoid upgrades of electron (otherwise I would have to rewrite my code).

What's an ideal solution for my situation (it can be also a small workaround)?

Thank you!

goLK
  • 1
  • 1
  • 6

2 Answers2

0

Cookies can now be shared with different domains so you will have to find a different way of doing what your trying to do.

Sean
  • 1,444
  • 1
  • 11
  • 21
0

For cross domain cookies alcuadrado has described a work around to do this in his post like below:

  1. centralize all cookies in a single domain, let's say cookiemaker.com
  2. when the user makes a request to example.com you redirect him to cookiemaker.com
  3. cookiemaker.com redirects him back to example.com with the information you need

check this answer and this.

Ali Ashraf
  • 119
  • 1
  • 8