Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I wanted to load website "http://localhost/example.aspx" into iframe. iframe is present in below https: website.

i am getting error when i am trying to load it.

i am using asp.net webform. what will be the way to load it ?

how to immplement CORS into asp.net webform?

What I have tried:

i have tried to load this but getting error.
Posted
Updated 25-Aug-21 23:27pm
v2

1 solution

An HTTPS page cannot load active content, including iframes, from an HTTP site. To do so would represent a security risk.

Make sure the site you want to embed is served over HTTPS instead.

And remember that localhost refers to the local computer of the person viewing the site. If the embedding site is public, you cannot embed a page from localhost within it, since that wouldn't work for anyone other than you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900