CodingAleCR / http_interceptor

A lightweight, simple plugin that allows you to intercept request and response objects and modify them if desired.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

interceptResponse, missing response headers

yan-064 opened this issue · comments

Hi,

I have some trouble, I'd like to retrieve custom header into the interceptresponse but the ResponseData object reveal only one header. Look at the screenshot. I'm searching for the Token-AuthorizationUser-Expired header and it's missing. The data contains only one header instead of 9 in the chrome network tab.

Thanks for your help.

  • Flutter version: 2.5.3
  • IDE : VS Code
  • http_interceptor Version 1.0.2

image

My bad ^^.

The api has to expose the header with the Access-Control-Expose-Headers header.

dart-lang/http#409

I close.

I'm glad you were able to solve it! Cheers and thanks for using the library 🎉

Also, we have a beta version for 2.0.0 which refactors our internal API for a much more extensible one, feel free to try it out ;)