Skip to content

Cannot use pagination headers at API

Summary

While using API endpoints, I can see the pagination headers returned correctly (like X-Total, X-Total-Pages). But cannot use it because of missing Access-Control-Expose-Headers.

Steps to reproduce

Make any call to any api, and try to use it at javascript from browser.

What is the expected correct behavior?

Be able to list the pagination headers at browser javascript.

Relevant logs and/or screenshots

image image

Possible fixes

Adjust Access-Control-Expose-Headers response header.