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

Hi,

I have configured cybersource as my payment gateway, I am able to navigate to cybersource and make a payment and able to return back to the site successfully.

But, user is getting logged out on redirecting back from the payment gateway, this is not happening all the time, but it is occurring randomly.

I identified in my networks that the cookies are getting removed on redirection. Is there any reason for that ? I have set Samesite=None and Secure=False in cookies.

Thanks!

아바타
취소

is it solved? let me know if it's solved .

작성자 베스트 답변

Yes, it worked fine. The issue was because of the latest changes made by firefox and chrome restricting the cookies based on samesite. If samesite=None and Secure it is working fine


아바타
취소

where do i need add this configuration?

작성자

You need to set those configuration at webserver level.. it is not working with python requests.

apache?

작성자

I did that in nginx, I don't use apache much.

베스트 답변

I was also facing this issue, after searching in odoo code I found  save_session=False in the controller, which worked for me.

So just add  save_session=False in the controller 

this is the controller for the reference :

@http.route('/payment/takepayment/response', type='http', auth='public', csrf=False, save_session=False)

아바타
취소
베스트 답변

Can you post your nginx.conf Ajay?

아바타
취소
관련 게시물 답글 화면 활동
2
7월 24
6708
1
10월 24
2294
4
9월 20
5612
0
6월 18
3127
0
2월 25
946