Setting up CORS Policy on Amazon S3 Bucket

Hello!

This is my first post to the Reddit community, so please correct me if this post location is off. I am hosting an mp4 video on an Amazon S3 bucket that is currently set to be completely public, and is configured with a CORS policy. I am attempting to use this video to stream directly into my plot on Decentraland.

Decentraland documentation states that CORS needs to be set up to access externally hosted videos, so it appears that I have fulfilled the requirements to be able to stream. Unfortunately I am still receiving the attached error (CORS policy error.) Furthermore, I’m sure the issue is with the CORS policy as when I turn on my Google Chrome plugin that blocks CORS, the video streams just fine.

Below is my CORS policy that I have set up on my S3 Bucket:

[

{

“AllowedHeaders”: [],

“AllowedMethods”: [

“GET”

],

“AllowedOrigins”: [

“*”

],

“ExposeHeaders”: []

}

]

I’d appreciate some help with figuring out this CORS policy. I’m pretty new with coding, and Amazon so I’m happy to learn if I missed something simple! Thanks again.


Related discussions:

Hmm have you gone through some of these steps? https://docs.aws.amazon.com/AmazonS3/latest/userguide/cors-troubleshooting.html

Change AllowedHeaders to “*” then test the result bro.

This was the fix. After changing the policy, and waiting a while for the change to propagate, the video streamed as expected. Thank you!