admin-on-rest

Content-Range missing header


I'm facing this error and I don't really understand why. Other ask don't contains usefully information so I try to ask again providing more details Content range missing header Response detail


Solution

  • As specified in the documentation:

    The simple REST client expects the API to include a Content-Range header in the response to GET_LIST calls. The value must be the total number of resources in the collection. This allows admin-on-rest to know how many pages of resources there are in total, and build the pagination controls.

    Your header does not have the requested format:

    Content-Range: posts 0-24/319