Unable to read multiple pages - access-control-expose-headers error

The setting of access-control-expose-headers omits "link" from the list of fields available to be accessed using the xhr.getResponseHeaders function.


The description of "Pagination" states The 'link' header in the response will hold the next page url if exists. If you have reached the last page of objects, then the link header will not be set.


The access-control-expose-headers in the HTML response omits "link" in the list of available fields.  This error has been observed when getting a list of tickets and contacts, but may apply to other requests.  Additionally, "access-control-headers" lists fields not included in the response header.


Below is the response header using chrome browser.

access-control-allow-methods: GET, POST, PUT, DELETE, OPTIONS
access-control-allow-origin: *
access-control-expose-headers: X-Path, X-Method, X-Query-String, X-Ua-Compatible, X-Meta-Request-Version, X-Request-Id, X-Runtime, X-RateLimit-Total, X-RateLimit-Remaining, X-RateLimit-Used-CurrentRequest, X-Freshdesk-API-Version
access-control-max-age: 86400
cache-control: must-revalidate, no-cache, no-store, private, max-age=0
content-encoding: gzip
content-type: application/json; charset=utf-8
date: Sun, 13 Jan 2019 00:16:12 GMT
expires: Wed, 13 Oct 2010 00:00:00 UTC
link: <https://*********.freshdesk.com/api/v2/tickets?page=2>; rel="next"
pragma: no-cache
status: 200, 200 OK
vary: Origin
x-envoy-upstream-service-time: 89
x-freshdesk-api-version: latest=v2; requested=v2
x-fw-ratelimiting-managed: false
x-rack-cache: miss
x-ratelimit-remaining: 4996
x-ratelimit-total: 5000
x-ratelimit-used-currentrequest: 1
x-request-id: 16e84d6f-1fd2-403c-9ab9-438ba36b26ad
x-xss-protection: 1; mode=block

  


We're checking this now and will fix it soon.

I am also having this issue for satisfaction ratings - has there been a fix or is there a workaround?

Hi !
Just got the same problem, trying to list all companies

Login or Signup to post a comment