System Information
- Strapi Version: 4.3.0
- Operating System: Mac OS
- Database:
- Node Version: v16.13.1
- NPM Version: 8.13.0
- Yarn Version:
Hello. I am trying to implement a change password flow with Nuxt and Strapi as described in the docs:
However, when posting to “/api/auth/change-password” as in the example I get a 405 methods not allowed.
Is this route even available? It’s not listed under “roles” in the settings tab.
const password = await this.$axios.$post(
'/api/auth/change-password',
{
currentPassword: this.currentPassword,
password: this.newPassword,
passwordConfirmation: this.newPasswordConfirmation,
},
{
headers: {
Authorization:
'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNjYwNDcwNjY1LCJleHAiOjE2NjMwNjI2NjV9.V-iFo6qWA78I9uJ_26a-i4lAh9OtPCJiT2FU5zjn2Cc',
},
}
)