Skip to content

Invalid CSRF - Case creation form #240

@HeitorMatt

Description

@HeitorMatt

When attempting to create a case (using axios and form), it results in Invalid CSRF. The error started to occur after 'token-validator.js'. The validator makes one GET request using axios, and somehow that's messing up the CSRF for the case creation POST. Need help to figure this out.

Ps. The error only occurs in the production (https://harena.ds4h.org/create). I've temporarily disabled the CSRF in 'config/shield.js', just so Marco can keep using the platform with no error.

Metadata

Metadata

Labels

bugSomething isn't workinghelp wantedExtra attention is neededhigh priorityNeeds to be resolved ASAPproductionharena in the cloud

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions