Closed WalshyDev closed 2 years ago
Hey! 👋 Looks like this was due to the Host
and CF-Connecting-IP
headers included when fetch
ing. Will be fixed in the next release. 👍
Hey! 👋 miniflare@2.0.0-rc.2
has just been released, including the fix for this. You can find the changelog here.
When calling
fetch
withRequest
or even an object with theRequest
headers ({ heders: request.headers }
) returns a 403 on Images.Running this code with Miniflare works as intended. It will fetch the image perfectly fine.
Running this code... returns a 403
I'm not sure what exactly in Miniflare or Images is causing this. It works perfectly fine if deployed. Seems some headers are just not being stripped properly and CF denies that.
Miniflare version: 2.0.0-rc.1