axios in reactjs has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values '*, *,*', but only one is allowed. code example
Example: axios delete is throwing cors error
headers: {"Access-Control-Allow-Origin": "*"}