Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

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

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

Odoo + Traefik + SSL Mixed Content Error on Editor

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
mixeddockerodoo16features
5 Odpowiedzi
9325 Widoki
Awatar
astadigitalesuk

I am trying to run odoo with traefik and everything works except the the website editor which loads an iframe with an http url which breaks the mixed content rule. What I tried to fix this issue was to pass the proto header with traefik, I also set the base.url to https and set it to freeze. And I tried to allow insecure headers but nothing works and I still get an insecure frame error. So now my question is did anybody got a working config with traefik(v2) and odoo(v16) that you can share with me? I can share my config later but for some reason this post will not get submitted so I am first trying to ask this question without the code.

0
Awatar
Odrzuć
Giovanni Frino

same problem here...

José Alejandro

I'm exactly like you. Don't know how to proceed

ROQUE PEREZ

I have the same problem, no one has found the solution?

Awatar
Jort de Vreeze
Najlepsza odpowiedź

This is probably due to a missing middleware in Traefik, which causes problems for Odoo 16. The traefik.http.middlewares.odoo-header.headers.contentSecurityPolicy=upgrade-insecure-requests​ label configures a middleware called "odoo-headers" to enforce the Content Security Policy header with the value "upgrade-insecure-requests". This header instructs the browser to upgrade any insecure HTTP requests to HTTPS before making the request. The traefik.http.routers.odoo.middlewares=odoo-headers​ label associates the "odoo" router with the "odoo-headers" middleware, which will process requests caught by the router to upgrade insecure requests. You can check out my blog post how to setup Traefik for Odoo (I have configured many Odoo instances with this configuration):  Setting up a reverse proxy for Odoo with Nginx Proxy Manager in Docker.

I hope this helps!


0
Awatar
Odrzuć
Awatar
Jérémy Donas
Najlepsza odpowiedź

Has anyone found a solution to this problem? https://github.com/odoo/odoo/issues/104597


look at this https://github.com/odoo/odoo/issues/104947

0
Awatar
Odrzuć
Awatar
Bhavin Patel
Najlepsza odpowiedź

The "Mixed Content" error typically occurs when you are serving content over both HTTP and HTTPS. This can happen when you have SSL enabled on your website but some of the resources are still being loaded over HTTP.

In the case of Odoo + Traefik + SSL, this error could occur if you are using the Odoo editor to edit your website and some of the resources (such as images or scripts) are being loaded over HTTP instead of HTTPS.

To resolve this error, you will need to ensure that all resources on your website are being served over HTTPS. Here are some steps you can take to fix this issue:

  1. Check your website for mixed content errors: You can use a tool like the "Why No Padlock?" tool to check for mixed content errors on your website. This tool will scan your website and identify any resources that are being loaded over HTTP instead of HTTPS.

  2. Update Odoo configuration to use HTTPS: You need to update Odoo configuration to ensure that all resources are being loaded over HTTPS. You can do this by modifying the "base.url" parameter in the Odoo configuration file to use HTTPS. You can find the configuration file in the Odoo installation directory.

  3. Update Traefik configuration to use HTTPS: Similarly, you will also need to update Traefik configuration to ensure that all resources are being served over HTTPS. You can do this by modifying the Traefik configuration file to use HTTPS.

  4. Update website content: If you still have mixed content errors after updating Odoo and Traefik configuration, you will need to update your website content to ensure that all resources are being loaded over HTTPS. This may involve updating links to resources and ensuring that any custom scripts or stylesheets are being loaded over HTTPS.

Once you have resolved all mixed content errors on your website, the "Mixed Content" error should no longer occur when using the Odoo editor.

0
Awatar
Odrzuć
Awatar
Nils Gerber
Najlepsza odpowiedź

same Problem here.

Working with ngnix proxmanager instead of traeffic but still the same problem.
Great to see that nobody cares... ;-(

0
Awatar
Odrzuć
Awatar
Omar Dixán Puig Pupo
Najlepsza odpowiedź

I had the same issue and continue until now searching how can I fix it

0
Awatar
Odrzuć
Bhavin Patel

Yes, it is possible to configure Traefik and Odoo to work together with HTTPS, even for the website editor. Here are some steps you can follow:

Configure Traefik to use HTTPS: Make sure that your Traefik configuration is set up to use HTTPS. You can do this by setting up SSL certificates and configuring the Traefik routers and services to use HTTPS.

Set the proxy-mode parameter in the Odoo configuration file: In the Odoo configuration file, set the proxy-mode parameter to True. This tells Odoo to use the X-Forwarded-Proto header that Traefik sends to Odoo to determine whether to use HTTP or HTTPS for links and resources.

Set the base.url parameter in the Odoo configuration file: Set the base.url parameter in the Odoo configuration file to the HTTPS version of your website URL. This ensures that all links and resources loaded by Odoo are using HTTPS.

Update the website editor iframe URL: The website editor iframe URL may still be using HTTP, which can cause the mixed content error. To fix this, you need to update the URL of the iframe to use HTTPS. You can do this by modifying the website.editor route in the Traefik configuration file to add a middleware that updates the iframe URL to use HTTPS.

Here is an example of what the middleware for the website.editor route might look like:

[http.middlewares.website-editor-https-redirect.redirectScheme]
scheme = "https"
permanent = true

[http.routers.website-editor]
rule = "Host(`example.com`) && Path(`/website/editor/*`)"
service = "odoo-website-editor"
middlewares = ["website-editor-https-redirect"]

This middleware redirects the iframe URL to use HTTPS, which should resolve the mixed content error.

I hope this helps! Let me know if you have any other questions.

Omar Dixán Puig Pupo

Thank you, Bhavin Patel, your answer help to fix the problem.

Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
Odoo 16 Community Docker Setup how to add Addons Folder
addons docker odoo16features
Awatar
Awatar
Awatar
Awatar
4
paź 23
30544
Translation Problem odoo 16 on docker
translations docker odoo16features
Awatar
Awatar
1
lip 23
3207
Accidantly pruned my docker volume of the odoo-web container... can I reimport old Attachments?
compose docker Docker odoo16features
Awatar
0
paź 23
2932
DeprecationWarning: The longpolling-port is a deprecated alias to the gevent-port option, please use the latter Rozwiązane
odoo16features
Awatar
Awatar
Awatar
Awatar
Awatar
5
wrz 25
24341
How to Add wizard under print button inside the form view.
odoo16features
Awatar
Awatar
Awatar
Awatar
3
sie 25
3717
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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