Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

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

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

Insecure translations

Naroči se

Get notified when there's activity on this post

This question has been flagged
translationshttpshttpajaxOdoo13
4 Odgovori
15829 Prikazi
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
Opusti
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
Opusti
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
Opusti
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
Opusti
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
Opusti
Enjoying the discussion? Don't just read, join in!

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

Prijavi
Related Posts Odgovori Prikazi Aktivnost
Translate string from init hook
translations Odoo13 hooks
Avatar
0
dec. 24
1547
How to translate text send from controller to js via xhr response?
javascript translations controllers ajax
Avatar
Avatar
2
avg. 24
2511
odoo error acces https
https http odoo10 SSL
Avatar
0
dec. 22
3015
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
dec. 23
26571
Can openERP 6.1 be accessed by (http://erp.mydomain.com) instead of (https) ?
port https http 8069
Avatar
Avatar
Avatar
3
mar. 15
8037
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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