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.
AWS S3
From your AWS account, go to the S3 Management Console.
Click on the bucket you'd like to connect.
Go to the permissions tab.
In the CORS section, click on Edit.
Paste the following text in the field that pops up:
6. Click on Save changes.
For more on setting up CORS on AWS S3, check out these AWS docs.
Google Cloud Platform (GCP)
Log in to the GCP console.
Click on Activate Cloud Shell in the top-right corner
In Cloud Shell, enter the following command:
4. Apply the CORS configuration to the bucket with the following command:
5. Check the CORS configuration with the following command:
Microsoft Azure
From the Azure dashboard, enter Storage Accounts, then click on the storage account you'd like to change the CORS policy of. From the left-hand sidebar, click on Resource Sharing (CORS) and add two new lines to the CORS policy, like so:
https://imeritapi.ango.ai
GET,HEAD,OPTIONS
*
*
360000
https://imerit.ango.ai
GET,HEAD,OPTIONS
*
*
360000
Click on Save at the top to save your changes.
Last updated