Knowledge Base
All Categories TeliportMe Virtual Tours How to add your CORS setting for your AWS video upload.

How to add your CORS setting for your AWS video upload.

We recently launched a few features like Polygon Hotspot, Magic Embed, and Virtual Host which require an external video hosting solution. Amazon AWS is a very popular hosting solution and we recommend that along with Azure.

One of the issues with using Amazon AWS is that they have something called a CORS setting which you would need to play around with to make sure that your videos work well with the teliportme.com domain.

We made a short quick video on how to do this.

Bucket Policy:
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "PublicReadGetObject",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::BUCKETNAME/*"
        }
    ]
}

CORS Policy:
[
    {
        "AllowedHeaders": [],
        "AllowedMethods": [
            "GET"
        ],
        "AllowedOrigins": [
            "*"
        ],
        "ExposeHeaders": []
    }
]

Was this article helpful?