Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting odoo environment to allow Trusted domain #19

Open
Buster14 opened this issue Aug 31, 2024 · 1 comment
Open

Setting odoo environment to allow Trusted domain #19

Buster14 opened this issue Aug 31, 2024 · 1 comment

Comments

@Buster14
Copy link

Buster14 commented Aug 31, 2024

I'm registering this installation through cloudflare tunnel to allow online payment,
but when i test the payment gateway i'm getting these error

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>400 Bad Request</title>
<h1>Bad Request</h1>
<p>Session expired (invalid CSRF token)</p>

is there anyway to allow specific domain in .env settings of this install, similar to what explained here ?
Should i do it via docker config or odoo config?

https://forum.mayan-edms.com/t/csrf-verification-failed-with-cloudflare-zero-trust/1565/2

@minhng92
Copy link
Owner

minhng92 commented Sep 2, 2024

Hi @Buster14 , try setting proxy_mode=True in etc/odoo.conf#L93, then restart the running container
(remember to uncomment this line by removing ; at the first)

I haven't test it yet, but you can give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants