Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2730 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mag 24
2238
0
feb 24
1350
2
lug 19
4531
0
lug 22
7148
1
feb 21
11795