403 Error After extending users-permissions with additional route and controller function

System Information
  • Strapi Version: v4.1.12
  • Operating System: Ubuntu 20.04
  • Database: SQLite
  • Node Version: v14.19.3
  • NPM Version: 8.12.2
  • Yarn Version: 1.22.19

I’ve successfully added a new route to the users-permissions plugin but every time I send a request to that endpoint, I get a 403 error. What could be the issue? Is there a way I could load my custom route first from the strapi-server.js file?

The route is visible when I run yarn strapi routes:list :eyes:

Is your custom route displayed on strapi’s admin permission list page?
You need to set public or authenticated permission on this page.

1 Like

Thank you for taking the time to help me out. I’ve tried your suggestion and it worked. :smiley: