Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Hello,
So I’m trying to upload to Spaces using the AWS s3 presigned URL SDK, but I’m getting a CORS error whenever I set the ACL to public read.
// generates URL without "x-amz-acl=public-read"
// does not throw CORS error, but uploads a private file that blocks public access
const s3Params = {
Bucket: process.env.UploadBucket,
Key,
Expires: URL_EXPIRATION_SECONDS,
ContentType: decodeURIComponent(mimeType)
}
const uploadURL = await s3.getSignedUrlPromise('putObject', s3Params)
// generates URL with "x-amz-acl=public-read" query string parameter
// throws CORS error when I try to PUT an object there
const s3Params = {
Bucket: process.env.UploadBucket,
Key,
Expires: URL_EXPIRATION_SECONDS,
ContentType: decodeURIComponent(mimeType),
ACL: 'public-read'
}
const uploadURL = await s3.getSignedUrlPromise('putObject', s3Params)
In my spaces config, I have Allowed Headers set to “*”, so I’m not sure what is causing the CORS error. Any ideas?
SarkariResultht
KFSys
Arne van Hoorn
alexdo
4287c71658bd4ea39bef277d491b1c
4287c71658bd4ea39bef277d491b1c
Demanix
Demanix
devjk1
Jordan
LC Labs Sp. z o.o.
a0cd9be01b14447384f79073fc121f