Disable sameSite cookie policy in Firefox (developer edition)
Asked Answered
N

1

9

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.

Northington answered 3/12, 2020 at 17:11 Comment(0)
N
21

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

network.cookie.sameSite.laxByDefault: false
network.cookie.sameSite.noneRequiresSecure: false
Northington answered 3/12, 2020 at 17:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.