Unable to crop media

Hey Vasu, I found somewhat of a solution, it allowed me to crop the media, but it still came up with an error in the console saying:
Access to XMLHttpRequest at 'https://s3_url' from origin 'https://strapi_url' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

But basically I followed the guide on here to make exceptions to the CORS policy:
https://docs.aws.amazon.com/AmazonS3/latest/userguide/ManageCorsUsing.html

currently mine is setup as follows:

[
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "GET",
            "PUT",
            "POST",
            "DELETE",
            "HEAD"
        ],
        "AllowedOrigins": [
            "*",
            "https://strapi_url"
        ],
        "ExposeHeaders": []
    }
]

I’m not too knowledgeable with the CORS policy, so if anyone has any more info on how to get this right, please do share :pray:

1 Like