CORS configuration for Ruby on Rails direct uploads feature

Hello! I’m trying to configure Fastly for one of my Ruby on Rails apps I’m working on. I’ve been previously using AWS for block storage + CDN but wanted to give Fastly a try because of your adoption by Fediverse apps.

Anyway, in order to be able to use direct uploads feature, i would normally apply a following CORS rules on my bucket:

{
  "CORSRules": [
    {
      "AllowedOrigins": ["https://app.example.com"],
      "AllowedMethods": ["PUT", "GET", "HEAD"],
      "AllowedHeaders": ["*"],
      "ExposeHeaders": ["ETag"],
      "MaxAgeSeconds": 3600
    }
  ]
}

However, when trying to do that with aws cli and aws s3api put-bucket-cors command, i’m getting aws: [ERROR]: An error occurred (NotImplemented) when calling the PutBucketCors operation: The requested operation is not implemented..

Is there a way of doing that currently on Fastly? All i was able to find was this article but it doesn’t seem to apply to object storage, rather to CDN.

Thanks!

In general, no, because the Fastly Object Storage product is not designed to be used directly, but instead be used behind a CDN or Compute service.