S3 Bucket CORS Error With Laravel File Upload
If you get a CORS error when you are uploading to AWS S3 bucket from Laravel, do the following: [ { “AllowedHeaders”: [ “*” ], “AllowedMethods”: [ “GET” ], “AllowedOrigins”: [ “http://my-local-site.local” ], “ExposeHeaders”: [ “x-amz-server-side-encryption”, “x-amz-request-id”, “x-amz-id-2” ], “MaxAgeSeconds”: 3000 }] The AllowedMethods prop You can add other HTTP methods here. The PATCH method … Read more