SK
Signal K•3mo ago
Copprhead

Copprhead - When I load the SK server GUI in an...

When I load the SK server GUI in an iframe, I cannot log in when using Chrome or Chromium, but with Firefox and Safari it works fine.
11 Replies
Copprhead
Copprhead•3mo ago
The login request successfully returns a token, but subsequent requests don't use the token, so the response is always 401.
Teppo Kurki
Teppo Kurki•3mo ago
Admin ui works on session cookie, not by explicitly including the token in header
Copprhead
Copprhead•3mo ago
Yep, seen that. And Chrom* doesn't save the cookie. Some Same-Site security stuff? (https://stackoverflow.com/questions/63398679/sso-login-not-working-in-iframe-after-chrome-update#63470220)
Stack Overflow
SSO login not working in iframe after chrome update
I have an app that lists different in-house and third party apps. There are some apps that are opened in iframe within my app and some of them are SSO enabled. Recently after chrome update to versi...
Copprhead
Copprhead•3mo ago
It doesn't save the cookie it receives from login so it cannot send it with the following requests.
Teppo Kurki
Teppo Kurki•3mo ago
Is the page with iframe coming from the same or another server?
Copprhead
Copprhead•3mo ago
The difference in "site" is then my local html file that contains the iframe and the SK url. I'm opening that as a file. Suppose if it were on the server it'd work? Is there a place I can just put it for a quick check without having to make a plugin?
Teppo Kurki
Teppo Kurki•3mo ago
public
Copprhead
Copprhead•3mo ago
Yeah, that worked <sigh> (it seems like the universe is trying to tell me: WRITE A PLUGIN! 😆 )
Teppo Kurki
Teppo Kurki•3mo ago
A webapp is very little work and easy packaging, file:// is practical only for quick pocs
David Godin
David Godin•3mo ago
Maybe you only need to set the iFrame sandbox parameters so it can access browser local storage and write cookies?
Copprhead
Copprhead•3mo ago
Interesting, will take a look.