403 forbidden image from cloudflare


#1

Hello,
i have an aws s3 bucket with CORS policy :

<?xml version="1.0" encoding="UTF-8"?>
* GET 3000 Authorization

when i am loading the image directrly from s3 im getting the image with status 200.
https://s3-eu-west-1.amazonaws.com/XXXXXXXXXXXX/images/The-Boss-Baby.png

when im trying to load the image from cloudflare cname directrly from the browser im also getting status 200 and the image itself.

https://XXXXXXXXXXXXXXX/storage/baby2baby/images/8ae6599d0fe592b17db7f13def8f52e9.jpg

when im trying to load cloudflare cdn url from my localhost im getting 403 and also content type text/html instead of image/jpeg.


#2

My wild guess is you have Hotlink Protection enabled. You can check that in your Cloudflare dashboard under Scrape Shield.


#3

thank you very much :slight_smile:
its working now!


#4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.