core Application,I have configure the CORS and added the following to it to enable CORS .SetIsOriginAllowedToAllowWildcardSubdomains()
.SetIsOriginAllowed((host)=>true)
.AllowAnyHeader()
.AllowAnyMethod()
.AllowCredentials();
It work fine when I run on Locally, but when i deploy on IIS on a Server I keep getting
Access to XMLHttpRequest at 'https://xxxx' from origin 'https://xxxx' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Please does anyone have an Idea on how to solve it? Do I need to cofigure CORS on IIS on the Server?
it can happen when you have an error so the response from middleware does not send cors headers
Обсуждают сегодня