Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2942 Näkymät

I am sending a login request from a react app to web/login endpoint, but this endpoint needs a csrf token and the odoo tells me that:
" if the form is generated or posted in javascript, the token value is
available as `csrf_token` on `web.core"

how to get this value in the react app so I can send it with the request?
Is there any endpoint that will give me the value of the csrf token?? 

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
toukok. 24
2372
0
helmik. 24
1401
2
heinäk. 19
4645
0
heinäk. 22
7251
1
helmik. 21
12018