Reputation: 69
Axios put won't get past preload request, but if I change it to post, the request does send.
This is my code. In the network tab OPTIONS shows, but on post, it sends OPTIONS and POST.
handleSubmit() {
axios.put(process.env.VUE_APP_API_BASE + 'auth/password', {
password: this.password,
password_confirmation: this.password_confirmation,
current_password: this.current_password
})
}
What could be causing the PUT request to not send?
For both PUT and POST, the OPTIONS request returns code 200
Upvotes: 0
Views: 330