CRSF Token invalid, how to configure? #17
-
Hi there, I'm probably doing something wrong, but if I start xlog with What am I missing? My use-case is to run Xlog in my home server and use it from various devices (LAN, not public) Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Plus, https://github.com/gorilla/csrf looks deprecated, might be useful a change to gorilla toolkit |
Beta Was this translation helpful? Give feedback.
-
I was able to replicate this issue on my network. I'll look into it |
Beta Was this translation helpful? Give feedback.
-
The cookie is set by gorilla/csrf by default to be set in secure-only connections. so if when we used HTTP it was rejected by the browser. I changed that in this commit 94151d7 and pushed a new release v0.59.0 try it out and let me know if it's fixed please. |
Beta Was this translation helpful? Give feedback.
-
Looks working now, thanks! But that option like something that should not be the default, looking at the docs: https://pkg.go.dev/github.com/gorilla/csrf#Secure I could open a PR if you're OK with that |
Beta Was this translation helpful? Give feedback.
-
good idea, although I don't want to encourage the use of xlog in unsecured environments, tried to be explicit about it here https://xlog.emadelsaid.com/Security/ I'm open for a PR to do that. if it's ok to make the flag name more explicit about what it does like |
Beta Was this translation helpful? Give feedback.
-
Fixed: #21 |
Beta Was this translation helpful? Give feedback.
Fixed: #21