Feb 04, 2020 07:05 AM|PGChoudhury|LINK
Apologize in advance if the question appears slightly basic in nature. But I can't get this to behave in the fashion I desire. Hence the post.
I have a MVC5 web application. In one of the views of this application, I want to embed and show another webpage from the internet inside an iFrame; the page that I want to load is -
I hope the picture is clear to you.
The iFrame HTML code --
<div class="row mb-5">
<iframe src="https://www.sellcodes.com/pro_indigo" style="width: 750px; height: 450px;">
Pretty usual stuff.
But when I run it, that sellcodes page does not show up in my iFrame. It is empty. Blank. For reference see the image --> [
https://imagebin.ca/v/5B4tCphd7HDK ]. It is simply blank. I cross checked with IE also, just to be sure if that's a browser issue. But it is blank there too.
What's the grief? What did I miss please?
I added this in my web.config; after seeing console error of 'sameorigin'.
<add name="X-Frame-Options" value="sameorigin" />
Still doesn't do it. No improvement. What else needs to be done? A quick precise solution anyone?