[bug]: Getting `CSRF cookie not set` when using 1Password to login
Is there an existing issue for this?
- [X] I have searched the existing issues
Current behavior
Getting this when attempting to login using 1Password:
Steps to reproduce
- Click on the username input field on the login page
- Click on my saved 1Password user
- 1Password automatically inputs my credentials AND submits the form.
- I'm redirected to the page saying
CSRF Verification Failed
Note: I suspect it has something to do with part 3 - specifically the way 1Password automatically submits the form.
Environment
Production
Browser
Other
Variant
Self-hosted
Version
v0.22.0 community
Note: Typing my credentials manually works. It only happens when using 1Password
I had the same issue but it disappeared without any changes from my side... 1Password 7 on macOS.
Was just about to report this issue. Same thing happens to me when using 1Password's autofill feature. Maybe some kind of race condition issue where 1Password is autofilling and submitting too fast?
Same problem her, selfhosted on debian 12.7 with docker. Same in Firefox and Google Chrome, but all forms are filled out manually no 1Password or other software like this
Same here with self hosted instance & 1P
Does anyone know a way to then bypass or solve this
Same here, selfhosted with Coolify. It worked when I installed it, haven't used it for a month or so, and now getting this when I try to login. (edit: I'm not using 1Password though)
Check for CORS_ALLOWED_ORIGINS environment variable. It should be http://... not https://.... When I changed it from https to http it worked.
Check for CORS_ALLOWED_ORIGINS environment variable. It should be http://... not https://.... When I changed it from https to http it worked.
Hi @tosh99 👋. I don't see that variable at all, maybe I need to add it. What exactly should the value be? Do you mean 'http://my-plane-domain.domain'?
edit: I got mine to work by adding my domain to CORS_ALLOWED_ORIGINS. I initially didn't have the CORS_ALLOWED_ORIGINS env variable, but I deleted Plane completely, and re-deployed (obviously this option is not for everyone as you will lose data, but it indicates whereabouts the issue could be, as @tosh99 pointed out). After re-deploying the newest image, I now had the CORS_ALLOWED_ORIGINS env variable, but it was set to "http://localhost", and I still got "CSRF ...". I changed it to "http://localhost,https://[YOUR-DOMAIN]" and now it works ✅.