Skip to content
Snippets Groups Projects
Commit e19d6241 authored by Xavier Morel's avatar Xavier Morel
Browse files

[FIX] core: compatibility with Werkzeug 0.15 ProxyFix


Werkzeug 0.15 modified ProxyFix such that by default it only forwards
the REMOTE_ADDR when enabled, whereas before 0.15 it would also
forward scheme and host. This breaks proxied odoo as the base url
becomes incorrect (cf #34412).

Use properly configured ProxyFix when running with werkzeug 0.15, old
configuration otherwise.

Backport of 4057227d which was merged
in master, because many people apparently run 0.15 now.

Closes #35085
closes odoo/odoo#36212

closes odoo/odoo#37709

Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
parent f183f74d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment