I'm using odoo 14 ce website, I've built simple site with two pages home and contact us, then using translation I've translated the site into arabic language, every thin working fine, but one day later the translation doesn't work, and this message showen in cosole:
Mixed Content: The page at 'https://xxx/ar/?fw=1' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://xxx/ar/website/translations/7a29797d51ca1976e69c2e366e5ed9c8c5529307? mods=&lang=ar_001'.
This request has been blocked; the content must be served over HTTPS
I'm hosting odoo with contabo vps and plesk obsidian , I've tried to add addional http directives
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Also I've added addional nginx directives:
if ($scheme != "https") {
rewrite ^ https://$host$uri permanent;
}
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
but nothing changed the same error and translation cann't loaded
I have the same problem. I had 2 problems:
- I used Cloudflare in proxy mode, and half secure mode
- I did not add host forwarding in Nginx proxy
By updating the config, it is ok now.