-
Notifications
You must be signed in to change notification settings - Fork 358
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
CSRF error on second time clicking Remove or Archive #523
Comments
This is working for me at least, and I'm not really qualified to help with debugging your setup. |
@ar-nelson I'm having exactly the same issue, with a similar setup (using Authelia but with nginx instead of caddy as the reverse proxy). Did you figure out how to fix it? |
@ar-nelson @philipdouglas have you tried using |
@jonathan-s I just tried that, but it doesn't seem to have made a difference. I think this should be correct for nginx: SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") |
@philipdouglas there's possibly some more setup required for caddy |
@jonathan-s I'm using nginx. The original poster was using caddy. |
I have a docker-compose setup with Linkding behind Authelia and Caddy. Most the the application works, but, when I click the Remove or Archive button on any entry for the second time on a given page load, it returns HTTP 403 and a CSRF error. The first click works, and refreshing the page will make it work again, once.
I don't know if this is related to #340. I tried the fix from that issue, but it didn't seem to do anything.
Here is my docker-compose setup for linkding; it's the mustache template used in my Docker config generator, so my local domain and passwords are redacted.
docker-compose.yml (relevant parts only)
config/links.env
config/Caddyfile (relevant parts only)
The text was updated successfully, but these errors were encountered: