Report this

What is the reason for this report?

Forbidden to retreive metadata from the Spaces Edge CDN endpoint

Posted on March 9, 2020

Using the AmazonS3 Java SDK to GET an object through the Edge CDN endpoint results in a 403 Forbidden. Before fetching the object, a HEAD request is sent to retreive some object metadata. It is this HEAD request that fails.

Using the Origin endpoint works fine, both for the HEAD metadata request and the actual GET request.

There is a segment in the Spaces docs that speaks of issues with the metadata headers:

File metadata headers, like Content-Encoding, are not passed through the CDN. Metadata headers are correctly set when fetching content directly from the origin.

Could this have anything to do with it?

I’ve had trouble with this for over a year and have been unable to solve it. Any ideas?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.