spiral-project / ihatemoney

A simple shared budget manager web application
https://ihatemoney.org
Other
1.18k stars 267 forks source link

CSRF Token #1264

Closed brunopiras closed 10 months ago

brunopiras commented 10 months ago

Hi all,

I've install 6.10 (due to issue to hash password) and I'm try to use it, but the system (web ui) give me an error:

"CSRF Token: The CSRF tokens do not match."

Instead if a try to use curl from shell:

curl --basic -u demo:demo http://192.168.1.2:8001/api/projects/demo {"id": "demo", "name": "demonstration", "contact_email": "demo@notmyidea.org", "logging_preference": 1, "members": [{"id": 1, "name": "Amina", "weight": 1.0, "activated": true, "balance": -43.33333333333334}, {"id": 2, "name": "Georg", "weight": 1.0, "activated": true, "balance": 116.66666666666666}, {"id": 3, "name": "Alice", "weight": 1.0, "activated": true, "balance": -73.33333333333334}], "default_currency": "XXX"}

Docker:

` version: "3.9"

services: ihatemoney: image: ihatemoney/ihatemoney:6.1.0 container_name: ihatemoney network_mode: bridge environment:

There is a solution?

Install in docker.

almet commented 10 months ago

Hi, could this be related to https://github.com/spiral-project/ihatemoney/issues/1227 ?

brunopiras commented 10 months ago

Hi, could this be related to https://github.com/spiral-project/ihatemoney/issues/1227 ?

Hi, and yep it is related to #1227.

Thanks