According to the docs (Pagination), pagination should be performed using the “link” header in the response.
However, when requesting all users (/api/v1/users
) from a SPA using a fetch CORS request, the “links” header can not be accessed from the headers object:
fetch('.../api/v1/users', requestOptions)
.then(response => {
response.headers.get('link') === null
...
})
...
How should the pagination of all users be performed in this case?