Hi Everyone,
I'm working to add an external websites page inside an iFrame in my Odoo website I added the code from an HTML block element from the website builder. The code is below
<iframe width="640" height="500" src="confidential_client_website_page_url"></iframe>
But what I get is an iframe with some error image and <domain> refused to connect.
It is a
security policy
, you can not add iframe in your site if a site in iframe refuses cross-origin framing.
See this:
https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy#Cross-origin_network_access
If you have access to that website you can add X-Frame-Options header like this to allow/deny iframes,
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
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.