Odoo 16 – 网站编辑器 – 我无法在我的网站上进行编辑

huangapple go评论66阅读模式
英文:

Odoo 16 - Website editor - I cannot edit on my website

问题

I use Apache as reverse proxy, I'd installed Website on Odoo 16 and when I try to go to Editor it doesn't resolve the page.

At developer tools of my browser appears this error:

Mixed Content: The page at 'https://rcr.ar/web#action=178&cids=1&menu_id=116' was loaded over HTTPS, but requested an insecure frame 'http://rcr.ar/'. This request has been blocked; the content must be served over HTTPS.

Let me know if you need more information.

Best regards and thanks,

Emilio

I try to open Editor at Odoo Website
I expect to edit my website.
The page doesn't appear and results in an error of Mixed Content

英文:

I use Apache as reverse proxy, I'd installed Website on Odoo 16 and when I try to go to Editor it doesn't resolve the page.

At developer tools of my browser appears this error:

Mixed Content: The page at 'https://rcr.ar/web#action=178&cids=1&menu_id=116' was loaded over HTTPS, but requested an insecure frame 'http://rcr.ar/'. This request has been blocked; the content must be served over HTTPS.

Let me know if you need more information.

Best regards and thanks,

Emilio

I try to open Editor at Odoo Website
I expect to edit my website.
The page doesn't appears and result an error of Mixed Content

答案1

得分: 3

你需要将以下内容添加到httpd.conf中的headers_module中,使其如下所示:

<IfModule headers_module>
    #
    # 避免将HTTP_PROXY环境传递给此代理服务器上的CGI或任何有“httpoxy”缺陷的后端服务器。
    # “Proxy”请求标头未由IETF定义,未在IANA列表中列出。
    #
    Header always set Content-Security-Policy "upgrade-insecure-requests;"
    RequestHeader unset Proxy early
</IfModule>

我还为此问题创建了一个与bncert-tool相关的错误报告。

英文:

You need to add

Header always set Content-Security-Policy &quot;upgrade-insecure-requests;&quot;

to httpd.conf under IfModule headers_module to look like follows

&lt;IfModule headers_module&gt;
    #
    # Avoid passing HTTP_PROXY environment to CGI&#39;s on this or any proxied
    # backend servers which have lingering &quot;httpoxy&quot; defects.
    # &#39;Proxy&#39; request header is undefined by the IETF, not listed by IANA
    #
    Header always set Content-Security-Policy &quot;upgrade-insecure-requests;&quot;
    RequestHeader unset Proxy early
&lt;/IfModule&gt;

I have also created a bug with bncert-tool for the same

huangapple
  • 本文由 发表于 2023年2月14日 05:36:09
  • 转载请务必保留本文链接:https://go.coder-hub.com/75441416.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定