serverlessnotifications icon indicating copy to clipboard operation
serverlessnotifications copied to clipboard

CORS blocked access orign request on local Environment

Open a08maheshwari opened this issue 4 years ago • 0 comments

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

  1. LocalSetting.json "Host": { "LocalHttpPort": 7071, "CORS": "*", "CORSCredentials": false }

  2. { "Values": { }, "Host": { "CORS": "*" } } @ealsur @wely Can you please suggest what I am missing? thanks in advance

a08maheshwari avatar Apr 15 '20 10:04 a08maheshwari