8

There's cases I when I want to run my front end as localhost and have it connect to a remote server for API requests. However, when trying to set cookies, Firefox won't allow it in cases where sameSite="Lax". It shows:

"Some cookies are misusing the “SameSite“ attribute, so it won’t work as expected " and "Cookie “connect.sid” has “SameSite” policy set to “Lax” because it is missing a “SameSite” attribute, and “SameSite=Lax” is the default value for this attribute."

In Google Chrome, simply allowing these sameSite="Lax" cookies is done by disabling these policies in the settings.

However, for the developer edition of Firefox, I wasn't able to find such option. How do I disable this for debugging purposes.

Tim Daubenschütz
  • 2,053
  • 6
  • 23
  • 39

1 Answers1

19

Go to about:config in Firefox and make sure you have the following settings:

network.cookie.sameSite.laxByDefault: false
network.cookie.sameSite.noneRequiresSecure: false
Tim Daubenschütz
  • 2,053
  • 6
  • 23
  • 39