Make it possible to update Allowed Origins

Created on 14 December 2022, almost 2 years ago
Updated 23 October 2023, about 1 year ago

Hi!
I am trying to make CORS upload work but it is not clear to me what should be done.
I have added the 'cors' => TRUE option in the S3 config in settings.php
But I understand I also need to provide the AllowedOrigins someway.
I see there is an s3-cors-example.json file, but I don't know what I'm supposed to do with this JSON config.

I don't know what you mean by "a template you can use to configure CORS using the REST API or the aws s3api put-bucket-cors command"

With the other module S3 File System CORS, there is an admin form that let's us fill in the allowed origins and then uses the s3Client->putBucketCors function to make it work.

With Flysystem S3, do I need to build my own admin form and do the same programmatically ?

Thank you!

Nick

Feature request
Status

Active

Version

2.0

Component

Documentation

Created by

🇫🇷France nicolas bouteille

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇧United Kingdom Eli-T Manchester

    I'm assuming as this issue is 10 months old that either a way forward has been found, or is no longer require.

    Please feel free to re-open if you still need support to resolve.

  • Status changed to Active about 1 year ago
  • 🇫🇷France nicolas bouteille

    No need for support indeed since I found a solution, but I suggested a form to update allowed origins like I did could be added to the module. Switching to feature request then.

Production build 0.71.5 2024