/api/auth/change-password not allowed

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(
            currentPassword: this.currentPassword,
            password: this.newPassword,
            passwordConfirmation: this.newPasswordConfirmation,
            headers: {
                'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNjYwNDcwNjY1LCJleHAiOjE2NjMwNjI2NjV9.V-iFo6qWA78I9uJ_26a-i4lAh9OtPCJiT2FU5zjn2Cc',

I am having this issue as well. The only solution I found was a Stack Overflow post that mentioned rewriting the controller (which isn’t something I really want to do) Change user password in strapi - Stack Overflow

That said, in the source code it looks like there just isn’t actually a route for changing the password, even though it’s documented. Which is cool.

It looks like this is a feature that was only added in 4.3.3. I updated and it works now. I do wish V4 was a bit more feature complete when it launched but oh well.

Yess! works on 4.3.4.
Thanks for the tipp :slight_smile: