跳至內容
選單
此問題已被標幟
2744 瀏覽次數

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?? 

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
5月 24
2241
0
2月 24
1351
2
7月 19
4533
0
7月 22
7159
1
2月 21
11800