Help

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

Error 400 : redirect_uri_mismatch

Avatar
odoo
Avatar
Discard
5 Answers
0
Avatar
odoo
Best Answer

I came across a similar issue. Resolved the issue by adding the following "Authorized redirect URIs" to my project in google's cloud console. 

https://mycompany-example.com/google_gmail/confirm

Avatar
Discard
0
Avatar
odoo
Best Answer

Make sure system parameter "web.base.url" set with http

Settings/Technical/Parameters/System Parameters

Avatar
Discard
0
Avatar
odoo
Best Answer

There are many reasons that odoo fail with proxy. I try to show you some cases.

Enable Proxy mode

 First of all, check the proxy mode is enabled. This option tells odoo to configure werkzeug with XFH headers.

In configuration add the following option

proxy_mode = True

and in the command line

... --proxy_mode=True

Add XFH headers

The wekzeug process XFH and update request. So it is very important to add headers in the proxy (such as Apache or Nginx). Here is the list of XFH headers:

  • X-Forwarded-For 
  • X-Forwarded-Proto
  • X-Forwarded-Host
  • X-Forwarded-Port
  • X-Forwarded-Prefix

Note that, if the X-Forwarded-Host is not in headers, then the proxy fix process will be ignored by Odoo (I`m sure in Odoo 14). In my case, Nginx did not set X-Forwarded-Host properly, so everything went wrongs.

Avatar
Discard
0
Avatar
odoo
Best Answer

THIS WORKED FOR ME (THX VMCH):

Make sure system parameter "web.base.url" set with https 

Settings/Technical/Parameters/System Parameters


Avatar
Discard
0
Avatar
odoo
Best Answer

Problem solved, thank you very much

2 Comments
Avatar
Discard
Avatar
odoo
-

How you solve the issue. I have same issue

Avatar
odoo
-

I'm wondering how you can do this. I did the same things but did not work for me.