web api post 方法在 flutter 中不起作用
web api post method do not work in flutter
我做了我在互联网上找到的一切,但仍然无法正常工作...
网络api是.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": "*",
"Access-Control-Allow-Credentials": 'true'
},
body: _buyBasket
);
您必须将 API .net core 更改为 .net core 6.0 才能解决您的问题
开心密码
我做了我在互联网上找到的一切,但仍然无法正常工作...
网络api是.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": "*",
"Access-Control-Allow-Credentials": 'true'
},
body: _buyBasket
);
您必须将 API .net core 更改为 .net core 6.0 才能解决您的问题 开心密码