Open tsurumure opened 4 years ago
Hi, i want to run a resultful api in Postman, but i get an error Invalid CSRF token.
Invalid CSRF token
How can i exclude my api router from csrf ?
i try to use:
headers: { X-CSRF-Token: [csrf-value], _csrf: [csrf-value] }
or
/api/add?csrf=gnwLgVst-Hf-liZtMY3BQwEik9x-Sn4k1-58
but it dosn't work
ajax post data: { _csrf: [csrf-value], ... }
data: { _csrf: [csrf-value], ... }
Hi, i want to run a resultful api in Postman, but i get an error
Invalid CSRF token
.How can i exclude my api router from csrf ?
i try to use:
or
but it dosn't work