Click here to Skip to main content
15,889,877 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I cannot for the life of me figure out why this will not load in an Iframe? It returns a
blank page?

HTML
 CDV Atmospheric Cross Section <iframe src="http://www.emc.ncep.noaa.gov/mmb/nammeteograms/images_off/702960.cloud.gif" width="100%" height="600"></iframe>


Pasting the URL in a browser window seems to work great, so what's the issue? Does NOAA blaock iFrames?

What I have tried:

Loading the URL works fine, not sure what's possibly up with the iFrame?
Posted
Updated 24-Feb-16 4:46am
Comments
Mohibur Rashid 24-Feb-16 2:20am    
Refused to display 'http://www.emc.ncep.noaa.gov/mmb/nammeteograms/images_off/702960.cloud.gif' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

Does this make any sense?

try the link
https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options

1 solution

That site returns an X-Frame-Options with SAMEORIGIN value...That means that only pages from the same origin (site) can display content in iframe...
The X-Frame-Options response header - HTTP | MDN[^]
 
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