联调问题
go 后 端框架 Kratos 如果收到没有携带请求头 content-type, 框架会报 400, 错误信息是 unregistered xxx :content-type
axios (0.27.2)
如果 post 请求没有传任何参数的情况下, 默认会去掉请求头 content-type, 请求拦截器加上也会被清除
最快的解决方法
请求时添加一个空对象即可
export const postTest = () => ax.post(`/test/url/example`, {})