تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2762 أدوات العرض

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
مايو 24
2249
0
فبراير 24
1355
2
يوليو 19
4540
0
يوليو 22
7175
1
فبراير 21
11813