I did everything which i found in internet, but still its not working...
The web api is .net core 5
http.Response response = await http.post(
Uri.parse(ss),
headers:
{
"Access_Control_Allow_Methods": "POST, OPTIONS",
"Content-Type": "application/json",
"Access-Control-Allow-Origin": "*", // Required for CORS support to work
"Content-Type": "text/plain",
"Access-Control-Allow-Origin": "*", // Required for CORS support to work
"Access-Control-Allow-Credentials": 'true'
},
body: _buyBasket
);
CodePudding user response:
you must change your API .net core to .net core 6.0 to resolve your problem happy code