Skip to Content
Menu
This question has been flagged

Hi All,

Please help with this in odoo16 web editor page is not working its keep only on loading .

Please find below error.


Mixed Content: The page at 'https://' was loaded over HTTPS, but requested an insecure frame 'http:///'. This request has been blocked; the content must be served over HTTPS. 



Avatar
Discard
Best Answer

I had this problem on a CloudClusters install. It seemed to happen after I installed free SSL certificates for my domains. The solution...

  • The nginx conf file is found at "/config/nginx/odoo-nginx.conf"
  • It had several lines like this: 
    proxy_set_header X-Forwarded-Proto $scheme
  • Change it to: 
    proxy_set_header X-Forwarded-Proto https;

Then restart the app.

Avatar
Discard
Best Answer

This could be due to an issue with a missing header (see https://github.com/odoo/odoo/issues/104597). You need to create a custom header for you ALB:

add_header Content-Security-Policy upgrade-insecure-requests;

Go through the ALB documentation on how to create custom headers.

I hope this helps!

Avatar
Discard
Author

Hi,

As our server configuration are like this Server:Werkzeug/2.0.2 Python/3.10.12 .please suggest us whether configuration is correct or not

Author Best Answer

Hi Duong 

As i have done this but still its getting same with this while i have done f12 in network i am getting this error

Mixed Content: The page at 'https://' was loaded over HTTPS, but requested an insecure frame 'http:///'. This request has been blocked; the content must be served over HTTPS.

Avatar
Discard
Best Answer

Try empty cache and hard reload to see it work or not
to do this, f12 then hold the rotation icon on the top left of your screen then you will the option "empty cache and hard reload" . Hope this help or maybe try restart your server sir

Avatar
Discard
Best Answer

Hi,

Please add the below line inside your nginx file . you need to add this inside the location
proxy_set_header X-Forwarded-Proto https;

example
location /longpolling {
                proxy_connect_timeout   3600;
                proxy_read_timeout      3600;
                proxy_send_timeout      3600;
                send_timeout            3600;
                proxy_set_header X-Forwarded-Proto https;
                proxy_pass http://127.0.0.1:8072;
        }

After adding it , save the file and restart nginx service


Hope it helps

Avatar
Discard
Author

Hi Cybrosys Team,

As we are using in aws load balancer without ngix load balancer is working please suggest us for this issue

Related Posts Replies Views Activity
0
Apr 24
748
2
Aug 24
1648
1
Nov 24
619
0
Sep 24
672
1
Sep 24
631