Trying to display profile image and posts images in react js and it returns
GET https://scontent-bos3-1.cdninstagram.com/v/t51.2885-19/s150x150/251732222_706564990317186_8089618267140685384_n.jpg?_nc_ht=scontent-bos3-1.cdninstagram.com&_nc_cat=106&_nc_ohc=5TZiKNXBGJkAX_fV8fo&edm=ABfd0MgBAAAA&ccb=7-4&oh=00_AT8X8_yC9ZzFSGwyRavkBxzH4bMs8qvFkIG5sGLrmpxOKg&oe=61D886CC&_nc_sid=7bff83 net::ERR_BLOCKED_BY_RESPONSE.NotSameOrigin 200
Junte-se à discussão - adicione o comentário abaixo:
from what i understand, you are talking about the cors error that appears on images. Could you help me on how to solve this problem? im using rest api to intergrate your api and as of now its the only thing that makes the api unusable to me. because i need to be able to open the image in my page and it gets blocked. An other question, is if its possible for you to provide the images in base64 format too.
Thank you in advance
Hi Hay707,
You can use browser, or add referer to header when get image.
you can read this https://stackoverflow.com/questions/67279678/instagram-web-api-get-err-blocked-by-response