I am getting an error on opening a Custom Named Entity Recognition Project in https://language.cognitive.azure.com/

SPBP 20 Reputation points
2023-11-24T04:48:43.1866667+00:00
Learning
r @ warn.js:14
extraction/qatarContractTest:1 Access to XMLHttpRequest at 'https://qatarcontracts.blob.core.windows.net/test?restype=container&comp=list' from origin 'https://language.cognitive.azure.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
qatarcontracts.blob.core.windows.net/test?restype=container&comp=list:1 
        
        
       Failed to load resource: net::ERR_FAILED
createGenericErrorHandler.ts:25 Uncaught (in promise) Unknown: A server error occurred. Please refresh the page and try again.
    at https://language.cognitive.azure.com/app.8b7ca085a7f23c306bd6.js:8:287151
    at Generator.next (<anonymous>)
    at https://language.cognitive.azure.com/vendors.cb6e2b3b724237c7b325.js:2:2703373
    at new Promise (<anonymous>)
    at l (https://language.cognitive.azure.com/vendors.cb6e2b3b724237c7b325.js:2:2703118)
    at Object.handle (https://language.cognitive.azure.com/app.8b7ca085a7f23c306bd6.js:8:287092)
    at https://language.cognitive.azure.com/app.8b7ca085a7f23c306bd6.js:8:284503
    at Generator.next (<anonymous>)
    at https://language.cognitive.azure.com/vendors.cb6e2b3b724237c7b325.js:2:2703373
    at new Promise (<anonymous>)
5extraction:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
521 questions
{count} votes

Accepted answer
  1. romungi-MSFT 48,911 Reputation points Microsoft Employee Moderator
    2023-11-24T11:57:11.71+00:00

    @SPBP It looks an error with CORS setting on your storage account. Could you please check if you have enabled CORS on the storage account as mentioned here along with the required access before reopening the studio to access NER?

    Enable CORS for your storage account Make sure to allow (GET, PUT, DELETE) methods when enabling Cross-Origin Resource Sharing (CORS). Set allowed origins field to https://language.cognitive.azure.com. Allow all header by adding * to the allowed header values, and set the maximum age to 500.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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