serverlessnotifications
serverlessnotifications copied to clipboard
CORS blocked access orign request on local Environment
I followed the instruction step by step from the source code: but I got stuck with the Error Access to XMLHttpRequest at 'https://cosmos-XXXX-dev.documents.azure.com/:5001/client/negotiate?hub=XXXXXX' from origin 'http://localhost:7071' 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.
I already tried some of the solutions
-
LocalSetting.json "Host": { "LocalHttpPort": 7071, "CORS": "*", "CORSCredentials": false }
-
{ "Values": { }, "Host": { "CORS": "*" } } @ealsur @wely Can you please suggest what I am missing? thanks in advance