-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Unable to see extra headers from response #663
Comments
I just noticed the same issue. The only headers that I end up seeing in |
Please use |
Yes, i've tried this one. Getting |
Any update on this one? |
Having the same issue here. Looks like a browser bug. |
Well, it is a browser issue indeed. Browsers need an In short: you must set your server response with the comma-separated list of headers list you want to expose to your response. Example: I strongly recommend you to use all-lower-case as I've had some trouble while using others. |
Actually, I do what you wrote above and it didn´t work. (my backend is in spring) what can I do to solve this? |
@edamian You have to make sure the headers are returned by the server in the appropriate format. I've tested this solution extensively with a few apps and it works as expected. Please take a look at the fetch standard spec to better understand why it might or might not work. |
@stgogm you're right, it works. |
When trying to access response headers, the only header i can see is
Content-Type
although server replies with extra ones.I'm able to get whole response with no issue using http resource:
Consider next server response:
What is Expected?
Expected to see at least
X-Password-Token
andX-Server
in console log (ideally, one would see all headers returned by server)What is actually happening?
Seeing only
content-type
in headers mapping console logThe text was updated successfully, but these errors were encountered: