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
Comments
Comment #2
nicolas bouteille commentedOK here's what I did to make it work, and it indeed works now... but I feel like maybe I did too much?
If this was indeed necessary, I suggest we add the same kind of form that in S3 File System CORS...
Comment #3
eli-tI'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.
Comment #4
nicolas bouteille commentedNo 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.