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?

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.

×
3 answers

How is this not getting much attention? This seems to be a big issue that basically makes DO Space useless

Having the same issue. It only happens on 50% of the files I upload.

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.

Submit an Answer