Rest API
Basically we can use REST API to access Azure Cosmos DB. Refer to https://learn.microsoft.com/en-us/rest/api/cosmos-db/
Cross Origin Resource Sharing (CORS)
- To enable CORS so that Azure Cosmos DB can be accessed from within a browser, the web app URL must be added to the list of allowed domains in the Azure portal.
- The entry must include the protocol, i.e. https:// prefix.