Link to home
Start Free TrialLog in
Avatar of sanjshah12
sanjshah12Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Asp.Net webform page with iframe content from another site

Hi,

I am looking at creating a webform page that contains an iframe. The iframe content is from another web domain that will contain a combination of images, JavaScript and html.

My question is how to ensure this will work with CORS and also ensure this is safe.

Any help is appreciated.
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

All you can do is try it.  If you do not have control over the other web site, there is no way for you to guarantee that it will be safe.  I don't know if CORS is involved because an iframe runs in the other domain and there isn't any 'cross domain' activity involved.
Avatar of sanjshah12

ASKER

No solution except trial and error
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.