iamDiscovery's avatar

AWS S3 CORS error on image upload

We are having issues with uploading images to AWS S3 in FireFox and Chrome - oddly, Safari works just fine? We are using FilePond as the image uploader, Laravel v8

The error is: No 'Access-Control-Allow-Origin' header is present on the requested resource.

AWS CORS:

[
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "HEAD",
            "GET",
            "PUT",
            "POST"
        ],
        "AllowedOrigins": [
            "https://example-site.com",
            "http://localhost:8000",
            "https://staging-site.com",
            "Vary: Origin"
        ],
        "ExposeHeaders": [],
        "MaxAgeSeconds": 3000
    }
]
0 likes
1 reply

Please or to participate in this conversation.