Report this

What is the reason for this report?

Access denied for new file uploaded to Spaces when accessing via custom Subdomain and Edge URL

Posted on March 3, 2020

Hey,

I have the issue that when accessing newly uploaded files via the custom subdomain or edge url for my spaces CDN, I get a access denied error. The file is fine when accessed via the Origin URL, but the edge and custom domain urls give me a XML response which says access denied. The permission is correctly set.

After issuing a purge request for that file it works.

How can I fix this?



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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Im also having this issue which indeed is making CDN unusable. I have to point everything to Origin since that seems to work fine.

I also get a 403 access denied

user@app-w-1:~/domain.com/current/storage/logs$ tail -n 70 laravel.log
[previous exception] [object] (GuzzleHttp\\Exception\\ClientException(code: 403): Client error: `PUT https://app-stuff.ams3.cdn.digitaloceanspaces.com/assets/logo.domain.com/js/site.js` resulted in a `403 Forbidden` response:
<?xml version=\"1.0\" encoding=\"UTF-8\"?><Error><Code>SignatureDoesNotMatch</Code><RequestId>tx0000000000000198831c1-005ef2 (truncated...)
 at /home/forge/domain.com/releases/145/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113)
[stacktrace]

Origin does work. Looking into way to put using origin and load using EDGE.

All I did was to redirect to root url instead of edge in CNAME record and everything works fine

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.