would anyone else have implemented uploading with s3 and come up agaisnt this issue too? and resolved it?
CORS issue with MinIO
I've change my storage to s3 using MinIO on my stack (TALL8 / Jetstream / Sail / MacOS) and can't find the cause of my failing to upload images.
I am using filepond to upload images and they get stuck by a CORS error being thrown...
OPTIONS http://minio:9000/local/livewire-tmp/KTgeXfmYR6RC... is blocked because...
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://minio:9000/local/livewire-tmp/KTgeXfmYR6RC...-.png?x-amz-acl=private&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=sail%2F20210702%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20210702T105837Z&X-Amz-SignedHeaders=host%3Bx-amz-acl&X-Amz-Expires=300&X-Amz-Signature=07a952e8f98ca90103cce194415891f85d3d1574fb68c96a1101b396792bfbcc. (Reason: CORS request did not succeed).
I have tried enabling:
config/cors: 'supports_credentials' => true,
config/media-library: 'enable_vapor_uploads' => env('ENABLE_MEDIA_LIBRARY_VAPOR_UPLOADS', true),
*I don't know if either are required but it's as per some web posts. *I don't know if MinIO buckets need some special COORS config but can't find anything about it on the web.
FYI: The seeder "uploads" files perfectly so i know the minio is installed and working (maybe not fully?).
Any help of pointers to resolve or debug further would be hugely appreciated. thanks.
Please or to participate in this conversation.