Set up CORS

Configure your CORS settings so that Ango Hub can safely connect to your buckets.
By default, Ango Hub cannot request resources from your cloud storage and display them in the browser due to CORS policy restrictions. To solve this, Ango Hub's domains need to be included in the CORS headers.
Here's how you can add Ango's domains to your CORS headers.


  1. 1.
    From your AWS account, go to the S3 Management Console.
  2. 2.
    Click on the bucket you'd like to connect.
  3. 3.
    Go to the permissions tab.
  4. 4.
    In the CORS section, click on Edit.
  5. 5.
    Paste the following text in the field that pops up:
"AllowedHeaders": [
"AllowedMethods": [
"GET", "POST", "PUT", "HEAD"
"AllowedOrigins": [
"ExposeHeaders": []
6. Click on Save changes.
For more on setting up CORS on AWS S3, check out these AWS docs.

Google Cloud Platform (GCP)

  1. 1.
    Log in to the GCP console.
  2. 2.
    Click on Activate Cloud Shell in the top-right corner
  3. 3.
    In Cloud Shell, enter the following command:
echo '[{"origin": ["",""],"method": ["GET", "POST", "PUT", "HEAD"],"responseHeader": ["Content-Type","Access-Control-Allow-Origin"]}]' > cors-config.json
4. Apply the CORS configuration to the bucket with the following command:
gsutil cors set cors-config.json gs://<bucket-name>
5. Check the CORS configuration with the following command:
gsutil cors get gs://<bucket-name>