wordpress cors request 400 bad request rest code example
Example: wordpress cors request 400 bad request rest
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': '*',
}
}
})