You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Access-Control-Expose-Headers response header indicates which headers can be exposed as part of the response by listing their names.
By default, only the 6 CORS-safelisted response headers are exposed: Cache-Control, Content-Language, Content-Type, Expires, Last-Modified, Pragma
If we want clients to be able to access other headers, you have to list them using the Access-Control-Expose-Headers header.
We need to set Access-Control-Expose-Headers in our backend to expose our custom response headers.
Taken from Access-Control-Expose-Headers
Therefore, we have to code your backend to set Access-Control-Expose-Headers such that it returns:
Access-Control-Expose-Headers: x-total-pages
The text was updated successfully, but these errors were encountered:
The Access-Control-Expose-Headers response header indicates which headers can be exposed as part of the response by listing their names.
By default, only the 6 CORS-safelisted response headers are exposed:
Cache-Control
,Content-Language
,Content-Type
,Expires
,Last-Modified
,Pragma
If we want clients to be able to access other headers, you have to list them using the Access-Control-Expose-Headers header.
We need to set
Access-Control-Expose-Headers
in our backend to expose our custom response headers.Taken from Access-Control-Expose-Headers
Therefore, we have to code your backend to set Access-Control-Expose-Headers such that it returns:
Access-Control-Expose-Headers:
x-total-pages
The text was updated successfully, but these errors were encountered: