I have created an ec2 windows instance where I have installed IIS. I have created a Cloudflare worker to download files using fetch api. But when I use await fetch('http://54.235.2.69/a.pdf', {cf:{cacheEverything: true}})
, I’m getting 403 forbidden error. I’m able to download file directly using the server link but not using fetch api.
Direct Server link for sample pdf
Cloudflare worker link to download sample pdf
I have enable directory browsing and added mime type. Also checked the website folder have permissions to IUSR.
Flix Hub is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.