콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
1983 화면

Hello

My website builder from Odoo 17 is still loading and does not display anything.

Here is the console result:

web.assets_web.min.js:832 Mixed Content: The page at 'https://mydomain.com/web#action=367&cids=1&menu_id=222' was loaded over HTTPS, but requested an insecure frame 'http://mydomain.com/'. This request has been blocked; the content must be served over HTTPS.


In Odoo 16, I fixed this issue with Nginx configuration by adding the following line:

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

This configuration line solved the problem for me. However, it's not working in Odoo 17.

Please suggest if you have any ideas.

Your help is greatly appreciated.

Thank you.


Thanks

아바타
취소
베스트 답변

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

아바타
취소
베스트 답변

Htet Aung Shane answer works for my. The proxy_redirect directive should be in the location / nginx context

아바타
취소
작성자 베스트 답변

Thanks for your answer
adding this nginx config line fix me the problem.
proxy_redirect http://yourdomainhere/ https://yourdomainhere/;

아바타
취소

Thanks. It's work for me!