-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instagram added cross-origin-resource-policy: same-origin ? #248
Comments
Hello, Replying to myself here. But hey, here's some insights! I managed to find a work around for this using a CloudFlare Worker. Basically, the worker wrap the request and change the cross-origin policy with On a plain regular
CF Worker :
Hope this helps anyone. |
You are not alone. I am getting the same error as you, "Specify a more permissive Cross-Origin Resource Policy to prevent a resource from being blocked" Tried to get it working but had no luck but shall try your approach and see how I fair! |
I had the same issue, I built this package to solve the issue https://www.npmjs.com/package/pass-cors Its simple to use, <img src="/proxy?url=https://instagram-cors-worker.your-company.workers.dev/?image_url=https%3A%2F%2Fcdn.instagram..."> And now all Instagram API images load on my frontend. |
This is not 100% related to this project but directly impacted. I noticed since a few days ago that Instagram is blocking hot linking to images outside its domain.
Am I alone experiencing this? I can't figure if they blocked our domain or if it's a new recent policy.
The text was updated successfully, but these errors were encountered: