What you need to change in your Chrome browser (for other chromium browsers it's similar)
-> got to chrome://flags/
-> set the "Local Network Access Checks" flag (#local-network-access-check) to Disabled.
What This Does
This flag controls Chrome's Private Network Access (PNA) policy, which:
- When Enabled (Default): Chrome blocks public websites (like
https://cosmos.azure.com) from making requests to private/local network resources (like your CosmosDB endpointhttps://<my_cosmos_account_name>.documents.azure.com/) without explicit permission - When Disabled : Chrome will no longer enforce these security restrictions, allowing the Azure Cosmos DB portal to access your database endpoint
This was Chrome's PNA protection blocking the request. By disabling this check, Chrome will now allow the cross-network request to proceed.
Important Notes
⚠️ You need to restart Chrome for this change to take effect
⚠️ Security Implications: Disabling this flag reduces browser security by allowing public websites to access private network resources. This is acceptable for development/testing, but be aware of the security trade-off.