Zum Inhalt springen
Odoo Menü
  • Anmelden
  • Jetzt gratis testen
  • Apps
    Finanzen
    • Buchhaltung
    • Rechnungsstellung
    • Spesenabrechnung
    • Tabellenkalkulation (BI)
    • Dokumente
    • E-Signatur
    Vertrieb
    • CRM
    • Vertrieb
    • Kassensystem – Shop
    • Kassensystem – Restaurant
    • Abonnements
    • Vermietung
    Websites
    • Website-Builder
    • E-Commerce
    • Blog
    • Forum
    • Livechat
    • E-Learning
    Lieferkette
    • Lager
    • Fertigung
    • PLM
    • Einkauf
    • Wartung
    • Qualität
    Personalwesen
    • Mitarbeiter
    • Personalbeschaffung
    • Abwesenheiten
    • Mitarbeiterbeurteilung
    • Personalempfehlungen
    • Fuhrpark
    Marketing-
    • Social Marketing
    • E-Mail-Marketing
    • SMS-Marketing
    • Veranstaltungen
    • Marketing-Automatisierung
    • Umfragen
    Dienstleistungen
    • Projekte
    • Zeiterfassung
    • Außendienst
    • Kundendienst
    • Planung
    • Termine
    Produktivität
    • Dialog
    • Genehmigungen
    • IoT
    • VoIP
    • Wissensdatenbank
    • WhatsApp
    Apps von Drittanbietern Odoo Studio Odoo Cloud-Plattform
  • Branchen
    Einzelhandel
    • Buchladen
    • Kleidergeschäft
    • Möbelhaus
    • Lebensmittelgeschäft
    • Baumarkt
    • Spielwarengeschäft
    Essen & Gastgewerbe
    • Bar und Kneipe
    • Restaurant
    • Fast Food
    • Gästehaus
    • Getränkehändler
    • Hotel
    Immobilien
    • Immobilienagentur
    • Architekturbüro
    • Baugewerbe
    • Immobilienverwaltung
    • Gartenarbeit
    • Eigentümervereinigung
    Beratung
    • Buchhaltungsfirma
    • Odoo-Partner
    • Marketingagentur
    • Anwaltskanzlei
    • Talentakquise
    • Prüfung & Zertifizierung
    Fertigung
    • Textil
    • Metall
    • Möbel
    • Speisen
    • Brauerei
    • Firmengeschenke
    Gesundheit & Fitness
    • Sportklub
    • Brillengeschäft
    • Fitnessstudio
    • Therapeut
    • Apotheke
    • Friseursalon
    Handel
    • Handyman
    • IT-Hardware & -Support
    • Solarenergiesysteme
    • Schuster
    • Reinigungsdienstleistungen
    • HLK-Dienstleistungen
    Sonstiges
    • Gemeinnützige Organisation
    • Umweltschutzagentur
    • Plakatwandvermietung
    • Fotostudio
    • Fahrrad-Leasing
    • Software-Händler
    Alle Branchen ansehen
  • Community
    Lernen
    • Tutorials
    • Dokumentation
    • Zertifizierungen
    • Schulung
    • Blog
    • Podcast
    Bildung fördern
    • Bildungsprogramm
    • Scale-Up! Planspiel
    • Odoo besuchen
    Software anfragen
    • Herunterladen
    • Editionen vergleichen
    • Releases
    Zusammenarbeiten
    • Github
    • Forum
    • Veranstaltungen
    • Übersetzungen
    • Partner werden
    • Dienstleistungen für Partner
    • Buchhaltungsfirma registrieren
    Services anfragen
    • Partner finden
    • Buchhalter finden
    • Einen Experten treffen
    • Implementierungsservices
    • Kundenreferenzen
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Eine Demo erhalten
  • Preiskalkulation
  • Hilfe

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

  • CRM
  • e-Commerce
  • Buchhaltung
  • Lager
  • PoS
  • Projekte
  • MRP
All apps
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Hilfe

SSL Website iframe send an HTTP request blocked by browser.

Abonnieren

Erhalten Sie eine Benachrichtigung, wenn es eine Aktivität zu diesem Beitrag gibt

Diese Frage wurde gekennzeichnet
5 Antworten
4686 Ansichten
Avatar
雍文

My Odoo17 Community Edition is an SSL site and when I go to the Website App, the iframe sends an HTTP request that is blocked by the browser. the page is not responding it keeps waiting. Can anyone answer what I should do? 

Chrome says:Mixed Content: The page at 'example.com/'. This request has been blocked; the content must be served over HTTPS.

Thank you!

0
Avatar
Verwerfen
Avatar
JessWade
Beste Antwort

In case of our website we follow the these steps. Since your site uses HTTPS, all resources, including those within iframes, must also be served over HTTPS. To resolve this:

  1. Update the iframe URL: Ensure that the URL in the iframe is also using HTTPS. For example, change http://example.com to https://example.com.
  2. Check embedded content: Verify that all resources (images, scripts, etc.) within the iframe are being loaded over HTTPS.
  3. Review site settings: Ensure that your Odoo settings and any plugins or extensions used are configured to support HTTPS.

After making these adjustments, clear your browser cache and reload the page. This should resolve the issue with the blocked HTTP request.

0
Avatar
Verwerfen
Avatar
Mariska Archielli
Beste Antwort

In case somebody is facing the same issue, I had the problem and for me this was what was causing this error:

proxy_pass_request_headers on;
proxy_set_headers Host $host;

These parameters were redirecting the https requests towards an http. I removed them from "location /" and added them in a separate bloc "location /api" and everything was working fine again.

0
Avatar
Verwerfen
Avatar
Ajin A K
Beste Antwort

The issue you're facing is the iframe within the Odoo Website App preview using an HTTP link while your website is configured for HTTPS. This creates a mixed content error. Here are two potential solutions to address this:

Solution 1: Modifying Odoo Configuration

  1. Locate your odoo.conf file: This is typically found in /etc/odoo/.
  2. Edit the file: Open the file using a text editor.
  3. Set web.base.url: Look for the [options] section and ensure the web.base.url parameter is set to the full HTTPS URL of your website, including the protocol (https://).
  4. Check workers.force_https: If the option workers.force_https = True exists within the [options] section, make sure it's enabled. This instructs Odoo workers to always use HTTPS for communication.

Solution 2: Modifying Nginx Configuration (If Applicable):

If you're using Nginx as a reverse proxy, you can configure it to rewrite the iframe URL to use HTTPS:

  1. Locate your Nginx configuration file: This is usually found in /etc/nginx/sites-enabled/ or /etc/nginx/conf.d/.
  2. Edit the file: Open the file with a text editor.
  3. Locate the Odoo server block: Find the section of your Nginx configuration that defines how it interacts with your Odoo server.
  4. Add a rewrite rule: Inside the server block, add a rewrite rule to modify the iframe URL. Here's an example:

​ location / { # ... other Nginx configuration ... rewrite ^/(.*)$ https://$host/$1 permanent; } 

This rule rewrites all HTTP requests to their HTTPS counterparts, including those potentially generated by the Odoo iframe. 

  • Restart your web server (Nginx) and clear your browser cache after making any configuration changes to see the effects.
  • If you're unsure about modifying configuration files, consider seeking assistance from a system administrator or someone familiar with Odoo and Nginx.

By implementing one of these solutions, you should ensure that the iframe generated by the Website App preview also uses the HTTPS protocol, resolving the mixed content error and allowing the page to load correctly.


0
Avatar
Verwerfen
雍文
Autor

Thanks Reply! I have done all these settings, but to no avail. I feel that the links in the iframe are defined by JS, and the http request issued on local machine is blocked by the browser and does not reach the reverse proxy at all.

Avatar
雍文
Autor Beste Antwort

Thanks Reply.

Both Nginx reverse proxy and SSL work fine. When the website App previews the homepage, it will start an iframe. The link of homepage initiated by this iframe is not an SSL link, but an HTTP link. The browser does not allow such access. So it will be blocked.  web.base.url has been set to HTTPS

0
Avatar
Verwerfen
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Beste Antwort

Hi,

Please add the below line inside your nginx file . you need to add this inside the location

proxy_set_header X-Forwarded-Proto https;


example

location /longpolling {

                proxy_connect_timeout   3600;

                proxy_read_timeout      3600;

                proxy_send_timeout      3600;

                send_timeout            3600;

                proxy_set_header X-Forwarded-Proto https;

                proxy_pass http://127.0.0.1:8072;

        }


After adding it , save the file and restart nginx service


Hope it helps

0
Avatar
Verwerfen
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!

Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!

Registrieren
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Herunterladen
  • Github
  • Runbot
  • Übersetzungen
Dienstleistungen
  • Odoo.sh-Hosting
  • Support
  • Upgrade
  • Individuelle Entwicklungen
  • Bildung
  • Buchhalter finden
  • Partner finden
  • Partner werden
Über uns
  • Unsere Firma
  • Markenwerte
  • Kontakt
  • Karriere
  • Veranstaltungen
  • Podcast
  • Blog
  • Kunden
  • Rechtliches • Datenschutz
  • Sicherheit
الْعَرَبيّة 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 ist eine Suite von Open-Source-Betriebsanwendungen, die alle Bedürfnisse Ihres Unternehmens abdecken: CRM, E-Commerce, Buchhaltung, Lager, Kassensystem, Projektmanagement etc.

Das einzigartige Wertversprechen von Odoo ist, dass es gleichzeitig sehr einfach zu bedienen und voll integriert ist.

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