Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2773 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 24
2251
0
thg 2 24
1357
2
thg 7 19
4543
0
thg 7 22
7182
1
thg 2 21
11817