Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
12623 Widoki

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.


Awatar
Odrzuć
Najlepsza odpowiedź


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


Awatar
Odrzuć
Autor

I don't have access to the server.I have tried other urls, they are working.Is there any possible way to walk around this?

Powiązane posty Odpowiedzi Widoki Czynność
0
lip 24
784
2
sie 23
278
6
wrz 22
38667
1
sty 20
8958
0
paź 19
2125