Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Updated Part-DB and get Invalid CSRF token #7443

CommanderDer started this conversation in General
Discussion options

Hello,
I updated my Part-DB container and now I'm getting the error message "Invalid CSRF token" when trying to log in. I don't get this message when I log in locally on the network. Only when I log in via my domain using Cloudflare and Pihole. But is that possibly the cause, and what do I need to configure where? Thank you.

You must be logged in to vote

Replies: 3 comments 7 replies

Comment options

Maybe Default_uri add into .env?

https://docs.part-db.de/configuration.html

You must be logged in to vote
6 replies
Comment options

image Guys, please, read the website of the script you're using.
Comment options

Oh yeah, sorry, I missed that. Unfortunately, it didn't work. But I did notice that when I enter my URL there, the " at the end isn't white.
part-01

Comment options

Remove the comments below, maybe a " is missing above

And you need to restart the Container after Change

Comment options

No, unfortunately, it only works locally. As I said, I use Cloudflare and Nginx Proxy Manager, and since updating Part-DB, I've been getting an error message when I try to connect via Cloudflare.

Comment options

Then maybe ask in there repo? I dont use NPM (annoying Tool), only Caddy with Cloudflare and all my LXC working fine. Idk what NPM do :/

Comment options

not sure if you fixed it, for me it was the TRUSTED_PROXIES=127.0.0.0/8,::1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 that was missing.
now it works :)

You must be logged in to vote
1 reply
Comment options

If your Nginx Proxy Manager is also a docker container TRUSTED_PROXIES=172.16.0.0/12 should be enough to do the trick without finding the exact IP address of the docker container.

Comment options

I'm also running into the same issue with cloudflare. I tried to set CORS_ALLOW_ORIGIN but that also didn't fix this.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /