By stephanos
I created a new space, enabled CDN, created a subdomain and an SSL for it.
I also made sure that all my files are set to Public.
But when I try to access the files in my space in my code I get this error:
Aws\S3\Exception\S3Exception
Error executing “ListObjects” on “{URL}”;
AWS HTTP error: Client error: GET {URL} resulted in a 403 Forbidden response:
<?xml version=“1.0” encoding=“UTF-8”?>
<Error>
<Code>AccessDenied</Code>
<BucketName>{space name}</BucketName>
<RequestId> (truncated…) AccessDenied (client): -
<?xml version=“1.0” encoding=“UTF-8”?>
<Error>
<Code>AccessDenied</Code>
<BucketName>{space name}</BucketName><RequestId>tx00000000000002d263f75-005ea1b9f0-1fd80b0-fra1a</RequestId>
<HostId>1fd80b0-fra1a-fra1</HostId>
</Error>
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!
Hi,
Do you try to add the CORS Configurations?
Dashboard –> Space –> Select your Spacename –> Settings –> CORS Configurations –> Add and you can add your website and select just GET.
Let me know.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.