Skip to content

Firefox Issues

Declan Coughlan edited this page Apr 13, 2023 · 2 revisions

Running WebClient locally

Firefox has introduced Dynamic State Partitioning, which helps reduce the tracking of users across websites. This feature is enabled by default in Firefox and will cause the WebClient to not work properly while running a local instance.

Dynamic State Partitioning restricts the local instance of the website from correctly working with the KeyCloak cookies and it appears as if the site become unauthenticated every few seconds.

To mitigate this issue, follow the steps below:

  1. Open Firefox
  2. Type about:config in the address bar and press enter
  3. search for network.cookie.cookieBehavior
  4. Change the value to 4
  5. Restart Firefox, to be safe, but the effect seems to be instantaneous.

As this is a security/privacy feature directly built into firefox, it cannot be disabled by code and requires manual intervention per installation. It is also not recommended to disable this feature entirely, and setting the value to 4 seems to be effective for running the WebClient locally.

Attempting to set the privacy.restrict3rdpartystorage.skip_list to include localhost does not seem to work.

References

Name Link
Dynamic State Partitioning https://developer.mozilla.org/en-US/docs/Web/Privacy/State_Partitioning
network.cookie.cookieBehavior https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Privacy/Storage_access_policy#network.cookie.cookieBehavior
Disabling State Partitioning https://developer.mozilla.org/en-US/docs/Web/Privacy/State_Partitioning#disable_dynamic_state_partitioning
Clone this wiki locally