Skip to content
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 invalid token on every form submission #412

Closed
dfeyer opened this issue Jan 6, 2019 · 8 comments
Closed

CSRF invalid token on every form submission #412

dfeyer opened this issue Jan 6, 2019 · 8 comments

Comments

@dfeyer
Copy link
Contributor

dfeyer commented Jan 6, 2019

Try to setup, based on current master, I can create an instance and users from the CLI. Users can subscribe from the frontend with success. But unable to edit my profile, create a blog, update instance preference, ...

Any idea what can cause the issue ?

@trinity-1686a
Copy link
Contributor

could you check what cookies do you have?

@dfeyer
Copy link
Contributor Author

dfeyer commented Jan 7, 2019

csrf:
  httpOnly | true
  path | /
  samesite | Strict
  secure | true
  value | agM5I8PRwL5nq3EghlFIcKnHc0mnsMyi4p1G7DV0S_WL1tExKhiYgDO19r65JoZX1ZP86b4D3kzmkTH-hjIYQJO8V9D3K0OZdh4lBoHIeknZ1tCS2IShKWEe1dLRrxeeqvM6kg

user_id | cxmz4V0fv2x2Fk2GEVxCRvIfWFflnMDj2zyE8B0=

@dfeyer
Copy link
Contributor Author

dfeyer commented Jan 7, 2019

OK my dev setup does not use HTTPS, so the secure cookie is not set, I think we can close this issue. Look like the USE_HTTPS is only used for federation, but Plume require and HTTPS connection. The document is not really clear on this.

@dfeyer
Copy link
Contributor Author

dfeyer commented Jan 7, 2019

I update my local Traefik to support https, and everything works fine

@igalic
Copy link
Contributor

igalic commented Jan 7, 2019

we should really document this…

@dfeyer
Copy link
Contributor Author

dfeyer commented Jan 7, 2019

I will continue my testing, open issue when I have questions, and if you are fine I create a meta issue with the missing parts in the documentation. So we can close this issue and have a central place for the documentation improvements

@trinity-1686a
Copy link
Contributor

@dfeyer

user_id | cxmz4V0fv2x2Fk2GEVxCRvIfWFflnMDj2zyE8B0=

Be aware knowing this value allow others to connect to your instance as yourself. If/when the instance you are testing on is/goes public, you should change ROCKET_SECRET_KEY to revoke this cookie

@dfeyer
Copy link
Contributor Author

dfeyer commented Jan 7, 2019

Be aware knowing this value allow others to connect to your instance as yourself. If/when the instance you are testing on is/goes public, you should change ROCKET_SECRET_KEY to revoke this cookie

I know, it's my local dev setup, so no risk ;) thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants