Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

SSL Website iframe send an HTTP request blocked by browser.

Odoberať

Get notified when there's activity on this post

This question has been flagged
5 Replies
4685 Zobrazenia
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
Zrušiť
Avatar
JessWade
Best Answer

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
Zrušiť
Avatar
Mariska Archielli
Best Answer

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
Zrušiť
Avatar
Ajin A K
Best Answer

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
Zrušiť
雍文
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 Best Answer

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
Zrušiť
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

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
Zrušiť
Enjoying the discussion? Don't just read, join in!

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

Registrácia
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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