ASPX templates
Version 7.x > ASPX templates > Iframe with external website View modes: 
User avatar
Member
Member
dmitry.salakhov-engine6 - 5/31/2013 5:03:23 AM
   
Iframe with external website
I try to place iframe with the src from external website, but Kentico always set 'X-Frame-Options' header to 'SAMEORIGIN'.

How can I show Iframe with external websites?

I tried to set
<add key="CMSXFrameOptionsExcluded" value="/" />
with no success (obviously this setting will allow links from Kentico website but not external ones).

I cannot list all the links in this setting, because they are editable at runtime.

Setup:
- Kentico 7.0
- Page use ASPX+portal template

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 6/2/2013 4:56:02 AM
   
RE:Iframe with external website
Hello Dmitry,

Could you please tell me what is the URL of the page on which are you trying to shot the iFrame? If you want to add iFrame on multiple pages you will need to add the web.config key multiple times with a different URL pats.

Best regards,
Martin Danko

User avatar
Member
Member
annaharris170-gmail - 6/4/2013 8:00:07 AM
   
RE:Iframe with external website
Is it possible to integrate iFrame from external website within the Kentico templates?

User avatar
Member
Member
kentico_sandroj - 6/4/2013 4:02:21 PM
   
RE:Iframe with external website
Hello,

Yes it is possible to use iFrames in Kentico - are you having trouble configuring something specific?

Regards,
Sandro