-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
Use samesite lax for portal cookies #2018
base: dev
Are you sure you want to change the base?
Conversation
Would that solve also the searx issue YunoHost-Apps/searxng_ynh#363 ? |
I don't know but you can check easily by applying the patch manually and then check if it fix the issue. Don't forget to restart the portal-api service after the change 😉 |
Just one comment for impacted user by this issue. Here are the process to apply the match manually:
|
We have a weird issue similiar to YunoHost/issues#2493, where on Android (with Firefox, not sure about other browsers) if a link is clicked in another app or a homescreen shortcut is opened, the user would get redirected to the app list (no matter if logged in previously or not). Copy-pasting a link into the address bar didn't trigger that behaviour. I tried manually applying the patch and that seems to have fixed the problem. |
@Josue-T could you detail the domain list in used in your tests ? Indeed, thos bugs exists too, and the situation depends how domain and sub domain are deployed... |
Well by example I tested with https://app.element.io/ on my local matrix server on |
The problem
YunoHost-Apps/synapse_ynh#497
After more investigation it seem to be related to the
samesite
settings of theyunohost.portal
cookie.So I did 2 test one with yunohost 11 and one with yunohost 12. With this process:
Now try to do this small fix on yunohost 12 and see that it solve the issue.
Note that there was already a discussion about this some year ago here: YunoHost/SSOwat#103
Solution
Use the same settings than on bullseye for the SSO cookie.
PR Status
Tested and it fixed the issue
How to test
Try to connect to a synapse server on a yunohost instance from https://app.element.io