Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Insecure translations

Subscriure's

Get notified when there's activity on this post

This question has been flagged
translationshttpshttpajaxOdoo13
4 Respostes
15805 Vistes
Avatar
Kolda

Odoo 13

I loaded german translations. Website menu items are not loaded for inner languages than default. 

After "Inspect" in "Chrome" I got following error:

Mixed Content: The page at 'https://MY_DOMAIN/de/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://MY_DOMAIN/de/website/translations/40a3e17d54c83f1fc09736b160fc4e6c395f3fba?mods=&lang='. This request has been blocked; the content must be served over HTTPS.

Where make sending translations over httpS?

I changed Technical --> Parameters --> System Parameters web.base.url to https:// and created web.base.url.freeze to True. 

Moreover in Odoo.conf I set proxy_mode = True
I added proxy_set_header X-Forwarded-Host $host; to MY_DOMAIN configuration nginx file

2
Avatar
Descartar
Avatar
Samo Arko
Best Answer

For me it worked to add "add_header Content-Security-Policy upgrade-insecure-requests;" into nginx configuration. Still testing if everything works. But it's for odoo 12.

2
Avatar
Descartar
Mustafa Bashier

Thank you soc much

Avatar
Daniel Lagin
Best Answer

Hi,

1. Technical --> Parameters --> System Parameters web.base.url to https:// and created web.base.url.freeze to True.

2. in Odoo.conf set proxy_mode = True

3. Set up nginx conf --> add correct headers

server {

     listen [::]:80;

     listen 80;

     ssl off;

     server_name odoo.implemento.sk;

     return 301 https://$host$request_uri;

     rewrite ^(.*) https://$host$1 permanent;

}


server {

    listen [::]:443 ssl http2;

    listen 443 ssl http2;

    server_name odoo.implemento.sk;


    # RSA certificate

    ssl on;

    ssl_certificate /etc/letsencrypt/live/odoo.implemento.sk/fullchain.pem; # managed by Certbot

    ssl_certificate_key /etc/letsencrypt/live/odoo.implemento.sk/privkey.pem; # managed by Certbot

    

    proxy_read_timeout 600s;

    client_max_body_size 512M;

    access_log  /var/log/nginx/odoo.odoo-access.log;

    error_log /var/log/nginx/odoo.odoo-error.log;


    location /longpolling {

        proxy_pass http://127.0.0.1:8072;

    }


    location / {

        proxy_pass http://127.0.0.1:8069;

        proxy_cookie_path / "/; secure; HttpOnly;";

        add_header Strict-Transport-Security "max-age=315360000000";

        add_header X-Frame-Options "SAMEORIGIN";

        

        proxy_set_header Host $host;

        proxy_set_header X-Real-IP $remote_addr;

        proxy_set_header X-Forwarded-Host $host;

        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_set_header X-Forwarded-Proto $scheme;


        proxy_http_version 1.1;

        proxy_request_buffering off;


        satisfy any;

        allow 127.0.0.1;

        deny all;


        auth_basic "Protected area";

        auth_basic_user_file /etc/apache2/.htpasswd;


        # common gzip

        gzip_types text/css text/scss text/plain text/xml application/xml application/json application/javascript;

        gzip on;

    }

}

1
Avatar
Descartar
Avatar
Bastiaan
Best Answer

I solved this problem in Odoo 14 by setting these headers in my Apache reverse proxy:

RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS}

0
Avatar
Descartar
Avatar
lukas limited
Best Answer

Hi Kolda, were you able to resolve this problem?

The translations file is only being loaded over http:// for non-logged-in users. After log in, it is correctly loaded over https:// . Running Odoo 13 from official Docker image.

0
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
Translate string from init hook
translations Odoo13 hooks
Avatar
0
de des. 24
1515
How to translate text send from controller to js via xhr response?
javascript translations controllers ajax
Avatar
Avatar
2
d’ag. 24
2495
odoo error acces https
https http odoo10 SSL
Avatar
0
de des. 22
2995
How Redirect HTTP to HTTPS or remove HTTP version. And How use just "www" version Solved
http_server https redirect http
Avatar
Avatar
Avatar
Avatar
4
de des. 23
26509
Can openERP 6.1 be accessed by (http://erp.mydomain.com) instead of (https) ?
port https http 8069
Avatar
Avatar
Avatar
3
de març 15
8004
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now