What debug possiblies do I have to see where a request gets rejected?

I am on strapi 4.12.6 and would like to debug why a REST API request returns 403. I looked at the logger.js solution but the example does not help. Is there a way to enable all debug messages and see them on the console?


Hello @austriancoder,

A Rest API endpoint returns 403 usually when you are trying to access an endpoint that you do no have permissions for, i.e. Settings > Roles.

There you can see your defined roles (there are 2 by default). Click on one of them and check the Permissions area.

When I get this 403 errors this is the object I get in the response →
{ data: null, error:{ status: 403, name: "ForbiddenError", message: "Forbidden", details: { }} }