We are enabling authenticating in swagger build in NSwag (.NET Core), but we are getting following error
“Access to fetch at ‘https://myOcta.com/auth2/default/v1/token’ from origin ‘https://localhost:5008’ 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. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.”
We have enabled CORS for ‘https://localhost:5008’ URL in OCTS but still facing same issue.
Please help to resolve this issue