콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

This is a duplicate of already asked problem, but I cannot reply or communicate, as I have no carma here and I need some upvotes. 

https://www.odoo.com/forum/help-1/question/csrf-validation-failed-where-could-be-a-problem-102554

The formular handling seems to be broken somehow. I have not found any information, which could solve the problem. The culprit seems to be caching of the csrf token. I have opened different browsers in private mode and the javascript code is generated with exact the same token. If concurrent users are using the submit form, only one user can complete the form. 

           <script type="text/javascript">
                odoo.define('web.csrf', function (require) {
                    var token = "204bdeeab8a109dddff1864d004db3059600e686o";
                    require('web.core').csrf_token = token;
                    require('qweb').default_dict.csrf_token = token;
                });
            </script>

I have seen the problem in an signup form, as only one user in 5 minutes could signup. I could bypass the problem by making my own lead contact module and disable the cache on the request definition. After the changes, the signup rate rises up to a normal level.

Has someone used the crm_lead form without the csrf problem?



아바타
취소
관련 게시물 답글 화면 활동
0
8월 17
7120
0
7월 23
2709
1
11월 21
6495
0
7월 24
4906
0
10월 19
3678