Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
4634 มุมมอง

I'm trying to enforce https on my installation but I keep getting redirected to the non http version of the site when in editing mode. My url for the site starts with https:// - is there somewhere I can set this to always use https?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You need to follow these steps in the Odoo deployment.

Some Useful links:

How to enable https on odoo | Odoo

(1) How To Configure SSL For Domain | Enable Https For Odoo Instance | Secure Nginx with Let's Encrypt - YouTube

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

My SSL works without issue, however when I edit a page in the website it attempts to redirect me to a non-https version of the site. My URL is in https mode however it attempts to load various objects via non-ssl version creating ssl errors:

Example in dev tools:
Blocked loading mixed active content “http://DOMAIN.com/website/force/3?path=%2F”web
Blocked loading mixed active content “http://DOMAIN.com/web/dataset/call_kw/website.menu/get_tree”

อวตาร
ละทิ้ง

Enable developer mode and go to Technical -> system parameter and make sure the value of the "web.base.url" parameter is set to https://YOURDOMAIN.com

ผู้เขียน

Thank you for this information, I have updated with https:// version, restarted server however it is trying to load an iframe using non-ssl version. Confirmed I have https:// in web.base.url system parameter.

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

Please check your nginx or apache configuration.

ผู้เขียน

I will check this out, I am running the latest docker image btw

Related Posts ตอบกลับ มุมมอง กิจกรรม
3
มิ.ย. 25
1759
how to make my website https? แก้ไขแล้ว
1
ก.พ. 25
3481
6
มิ.ย. 25
30551
Error 400 : redirect_uri_mismatch แก้ไขแล้ว
8
ก.พ. 25
23773
2
ธ.ค. 24
6259