Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why this instagram image url not working with HTML img tag

Why Instagram image URL does not work with HTML <img> tag?

<img src='https://instagram.fjai3-1.fna.fbcdn.net/v/t51.2885-15/273154298_119474150437980_8801290709408392534_n.jpg?stp=dst-jpg_e35_p1080x1080&_nc_ht=instagram.fjai3-1.fna.fbcdn.net&_nc_cat=1&_nc_ohc=7w4ERevjerIAX8hhoMk&edm=AABBvjUBAAAA&ccb=7-4&oh=00_AT9CrFcW-JrAfkLLgdIRlVlnE7lc0KspmLJDpPPy3CgP_Q&oe=62200913&_nc_sid=83d603' alt='scraped URL'>

but it is perfectly opening in the new tab.

like image 811
Dhanesh Saini Avatar asked Oct 27 '25 05:10

Dhanesh Saini


1 Answers

You can see error in your console: ERR_BLOCKED_BY_RESPONSE.NotSameOrigin 200. That's because response with the image has cross-origin-resource-policy: same-origin header. It means it works only on same origin (domain). Browser blocked it.

like image 183
Jax-p Avatar answered Oct 29 '25 20:10

Jax-p