Can't get total items

I use axios for requests. But I can’t get X-Pagination-Total-Items header. In the browser network I can see this field in response headers. I researched and found so many solutions that they say “Access-Control-Expose-Headers header should be set on server so it will be allowed to be read on client app.”

Can anyone help me to solve this problem?

Access-Control-Expose-Headers - HTTP | MDN (mozilla.org)