Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Forbidden to retreive metadata from the Spaces Edge CDN endpoint
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?