minhng92 / odoo-17-docker-compose

Set up Odoo 17 (released 2023) quickly for development/production using Docker Compose.
113 stars 144 forks source link

Setting odoo environment to allow Trusted domain #19

Open Buster14 opened 2 months ago

Buster14 commented 2 months ago

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 commented 2 months ago

Hi @Buster14 , try setting _proxymode=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.