使用ApiPost进行测试,无法使用API
MageMaize opened this issue · comments
Mage commented
用ApiPost使用API,传入了对应的参数,返回405 Method Not Allowed 浏览器上就能用。明明提交的http头和post body都跟浏览器相同。electron使用axios也无法使用api
Mage commented
测试curl命令也无法使用
curl -F "file=@20211001192808.png" -F "compress=0" "http://10.10.1.2:8089/api/tr-run"
返回结果:
Alisen commented
要用POST方法哈~