3rd Party Cookies and Chrome 84+ (embedding Unraid into Home Assistant)


Recommended Posts

So I was trying to embed my Unraid dashboard in a panel (as an IFrame) on Home Assistant and it was telling me that cookies must be enabled to login.

 

Did some research and turns out in Chrome 84+, 3rd party cookies served via HTTP (and not HTTPS) are blocked unless they have the proper SameSite attribute. A third party cookie needs to have the following in order for the browser to accept the cookie

 

SameSite=None; Secure

 

Is there any way we can have this added to the Unraid Web UI so that we can embed the page in IFrames?

cookie.png

Link to comment

If you're using just HTTP (and not HTTPS) then adding 'Secure' to the cookie will just prevent it from sending over HTTP.

 

What I think you really need, when your using just HTTP, is:

SameSite=Lax

 

You can test this temporarily by running this command in your Unraid terminal:

sed -i 's/samesite=strict/samesite=lax/g' /usr/local/emhttp/plugins/dynamix/include/local_prepend.php

and then Logout and Log back in to the Unraid web UI to refresh the cookie with the new samesite=lax settings.

 

 

Link to comment
  • 8 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.