当我尝试使用 localhost:[port] 测试 api 时,它给出了标头 [“Host”] 控制台错误中的无效字符。我正在使用 dotnet core webApi。我从 api 端交叉检查了 CORS 配置,一切正常。问题出在邮递员方面。 邮递员版本:v8.7.0
testing postman web-api-testing asp.net-core-webapi
asp.net-core-webapi ×1
postman ×1
testing ×1
web-api-testing ×1