Search code examples
phpdrupaldrupal-7

Drupal, getting list of nodes gives 403 Forbidden Error


I have added RESTful Web Service module for my Drupal application.

I have added all permissions for anonymous users for RESTful Web Service.

I can access to specific nodes when I write something like this.

example.com/node/<id_of_node>.json

However, When I try to access to list of nodes like this:

example.com/node.json

It gives to me 403 Forbidden error.

Why this is happening?


Solution

  • The error code 403 Forbidden clearly suggests the issue is related with permissions.

    If you have set the permissions correctly and there is no other modules for managing access to nodes it should have worked.

    enter image description here

    I recommend checking out enabled modules for Content Access Control.

    Also you may want to check the status report for Node Access Permissions, rebuilding the permissions may resolve the issue you are having.

    enter image description here