首页 > 解决方案 > 发布请求适用于邮递员,但不适用于 nuxt axios

问题描述

我已经尝试了几次,并在一些类似的问题中寻找最好的结果,但我没有得到任何合理的结果,我得到了邮递员和 js AJAX 的回应,但没有得到 axios 的回应。我的标头请求如下:

:authority: www.sample.com 
:method: POST 
path: /api/v1/contact 
:scheme: https 
accept: application/json, text/plain 
accept-encoding: gzip, deflate, br 
accept-language: en-US,en;q=0.9,fa;q=0.8 
content-length: 549 
content-type: application/x-www-form-urlencoded 
origin: http://localhost:3000 
referer: http://localhost:3000/contact-us 
sec-fetch-dest: empty 
sec-fetch-mode: cors 
sec-fetch-site: cross-site 
user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) 
Chrome/83.0.4103.61 Safari/537.36

任何想法?多谢。

标签: javascriptvue.jsaxios

解决方案


推荐阅读