popc0rnx Posted August 27, 2020 Share Posted August 27, 2020 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? Quote Link to comment
eschultz Posted August 28, 2020 Share Posted August 28, 2020 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. Quote Link to comment
RevangeXX Posted May 21, 2021 Share Posted May 21, 2021 Hi, im also trying to embed my Unraid dashboard as an IFrame, also your command not work. Has anyone managed to do that? 1 Quote Link to comment
Recommended Posts
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.