Click here to Skip to main content
15,867,488 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i wanted to add http content in the iframe within https site.
right now i am getting error as mixed content not allowed. it is possbile by using CORS. but cors when i tried to add headers in asp.net web form it is giving same error as mixed content not allowed.

What I have tried:

i have tried to add headers in asp. web form application.

<system.webServer> 
  <httpProtocol>
    <customHeaders>
        <add name="Access-Control-Allow-Origin"  value="*" />
        <add name="Access-Control-Allow-Methods" value="GET" />
        <add name="Access-Control-Allow-Headers" value="Content-Type" />
   </customHeaders>
</httpProtocol>
Posted
Updated 6-Sep-21 21:29pm

1 solution

The answer to this hasn't changed in the two weeks since you last posted this question:
How do I load http:// wbesite in iframe into https:// application in ASP.NET web form?[^]
 
Share this answer
 
Comments
rka7705 7-Sep-21 3:44am    
is it possible by using CORS?
Richard Deeming 7-Sep-21 3:49am    
No.

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