I’m trying to configure the module https://www.drupal.org/project/s3fs_cors
I have configure and check that s3fs works fines; some of the configurations:
$settings['s3fs.use_s3_for_private'] = TRUE; $settings['s3fs.upload_as_private'] = TRUE; $settings['s3fs.use_s3_for_public'] = FALSE;
With this options I can use css/js in local files and also configure some file/image files with s3.
When I go to configure to http://drupal.docker.localhost:8000/admin/config/media/s3fs/cors and save configurations I get CORS settings have been succesfully updated at AWS CORS
But when I tryto use the file widget to upload a file to s3 I get this error in browser console:
Access to XMLHttpRequest at 'http://s3-name-des-public-files.s3.eu-west-1.amazonaws.com/' from origin 'http://drupal.docker.localhost:8000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Someone knows what’s going on?