Hello, I get this error on Asp Net 5 WebApi:
Access to XMLHttpRequest at 'http://localhost:5000/Api/curvapeso/upload/azienda/716' from origin 'https://localhost:44344' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
And the endpoint (Upload() action below) isn't reached.
This is my CORS configuration:
This is my upload endpoint, and Options handler (see in this post and suggested by the docs):
has anyone already had this problem? How to solve it?
Thank you very much