📜  wordpress cors request 400 bad request rest - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:18.195000             🧑  作者: Mango

代码示例1
axios({
   method: 'post',
   url: "https://my-site.com/myapi/user/generate_auth_cookie/?nonce=${nonce}&username=${username}&password=${password}",
   config: {
       headers: {
         'Access-Control-Allow-Origin': '*',
       }
   }
})