axios.post is sending a GET request

后端 未结 4 1576
清歌不尽
清歌不尽 2021-01-17 09:15

I have a chrome extension which uses react/axios. In that app I\'m sending a post request like so:

export const createComment = payload => {
  const url =         


        
4条回答
  •  独厮守ぢ
    2021-01-17 09:25

    This happens then URL is redirected from POST call and GET happens after redirect. Most common redirects are caused by not needed trailing slashes or http redirecting to https

提交回复
热议问题