CORS policy: Permission was denied for this request to access the `unknown` address space.

Ponnathithan, Divya 0 Reputation points
2025-12-15T13:27:33.11+00:00

Hi,

We are experiencing the same issue discussed on this link https://learn.microsoft.com/en-us/answers/questions/5604651/cannot-view-data-in-the-azure-cosmos-db-data-explo on MS Edge (ver:143.0.3650.80) and also Chrome (ver:142.0.7444.176) browsers.

Error: from origin 'https://cosmos.azure.com' has been blocked by CORS policy: Permission was denied for this request to access the unknown address space.

the suggested settings in the ref link didn't help to resolve the issue.

Could you advise on the next steps to fix this? Appreciate your help!

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2025-12-15T13:27:54.1033333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error message you are encountering indicates that the CORS policy is blocking your request due to permission issues with accessing the specified address space. Here are some steps you can take to troubleshoot and potentially resolve the issue:

    1. Verify CORS Settings: Ensure that you have correctly configured the CORS settings in your Azure Cosmos DB account. You need to specify the allowed origins in the allowedOrigins header. Make sure that the origin https://cosmos.azure.com is included in your CORS configuration.
    2. Check Browser Console: Use the browser's developer tools (F12) to check for any additional error messages or details in the console that might provide more context about the CORS issue.
    3. Preflight Requests: If your request is complex (e.g., it uses custom headers or methods), ensure that your server is correctly handling preflight requests. The server should respond to OPTIONS requests with the appropriate CORS headers.
    4. Allowed Methods and Headers: Make sure that the CORS policy allows the HTTP methods (GET, POST, etc.) and headers that your application is trying to use. You may need to explicitly allow specific headers using the WithHeaders method in your CORS policy configuration.
    5. Testing with Different Browsers: Since you mentioned that the issue occurs in both Edge and Chrome, try testing in a different browser or in incognito mode to rule out any caching issues or extensions that might interfere with the request.
    6. Review Documentation: Consult the Azure Cosmos DB documentation on CORS to ensure that you have followed all necessary steps for configuration.

    If these steps do not resolve the issue, consider reaching out to Azure support for further assistance.


    References:


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.