Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iframe #79

Open
Famku opened this issue May 5, 2023 · 5 comments
Open

iframe #79

Famku opened this issue May 5, 2023 · 5 comments
Labels
stale Nothing is happening

Comments

@Famku
Copy link

Famku commented May 5, 2023

Hi,

I would like to show Benotes in an iframe.

Unfortunately the login in an iframe doesn't work for me.

Maybe you know a solution?

@fr0tt
Copy link
Owner

fr0tt commented May 7, 2023

Hi,

just to clarify, you mean you can't login in that case or do you mean in a more general way (because I could imagine that saving the authentication cookie might be difficult in an iframe) ?

@Famku
Copy link
Author

Famku commented May 7, 2023

Login lets me through but there is no content

chrome console shows me this error (in German, sorry)

Anfrage-URL: http://192.168.1.55:8080/api/auth/me
Anfragemethode: GET
Statuscode: 401 Unauthorized
Remote-Adresse: 192.168.1.55:8080
Richtlinien für Verweis-URL: strict-origin-when-cross-origin

@fr0tt
Copy link
Owner

fr0tt commented May 7, 2023

Have you tried using Firefox ? It could have something to do with the samesite policy for cookies in Chrome

@Famku
Copy link
Author

Famku commented May 8, 2023

same issue with Firefox

@fr0tt
Copy link
Owner

fr0tt commented May 25, 2023

You could try to check if that's actually the cause by disabling it for a brief moment: https://stackoverflow.com/questions/65130753/disable-samesite-cookie-policy-in-firefox-developer-edition

@fr0tt fr0tt added the stale Nothing is happening label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Nothing is happening
Projects
None yet
Development

No branches or pull requests

2 participants