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!
Click below to sign up and get $100 of credit to try our products over 60 days!