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

Odoo + Traefik + SSL Mixed Content Error on Editor

Subscriure's

Get notified when there's activity on this post

This question has been flagged
mixeddockerodoo16features
5 Respostes
9335 Vistes
Avatar
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
Avatar
Descartar
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?

Avatar
Jort de Vreeze
Best Answer

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
Avatar
Descartar
Avatar
Jérémy Donas
Best Answer

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
Avatar
Descartar
Avatar
Bhavin Patel
Best Answer

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
Avatar
Descartar
Avatar
Nils Gerber
Best Answer

same Problem here.

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

0
Avatar
Descartar
Avatar
Omar Dixán Puig Pupo
Best Answer

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

0
Avatar
Descartar
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.

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
Odoo 16 Community Docker Setup how to add Addons Folder
addons docker odoo16features
Avatar
Avatar
Avatar
Avatar
4
d’oct. 23
30569
Translation Problem odoo 16 on docker
translations docker odoo16features
Avatar
Avatar
1
de jul. 23
3229
Accidantly pruned my docker volume of the odoo-web container... can I reimport old Attachments?
compose docker Docker odoo16features
Avatar
0
d’oct. 23
2937
DeprecationWarning: The longpolling-port is a deprecated alias to the gevent-port option, please use the latter Solved
odoo16features
Avatar
Avatar
Avatar
Avatar
Avatar
5
de set. 25
24396
How to Add wizard under print button inside the form view.
odoo16features
Avatar
Avatar
Avatar
Avatar
3
d’ag. 25
3730
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