Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't retrieve response headers on flutter web #726

Open
MarcoDiGioia opened this issue Jun 28, 2022 · 5 comments
Open

Can't retrieve response headers on flutter web #726

MarcoDiGioia opened this issue Jun 28, 2022 · 5 comments

Comments

@MarcoDiGioia
Copy link

Hi!

I can't get any response header from xhr response. Only "content-type" -> "application/json" and "content-length" -> "206" are retrieved

I did some debug and this only happen when executing send method from BrowserClient. Instead, with the same api, in flutter using IoClient all works as expected.

Of course domain of cookies it's the same from web app domain.

In order to reproduce the bug you can do any simple http request that put headers in response.

@sachinbpatil619
Copy link

I am also facing the same issue so, any update on this issue ?

@venkadesh-p
Copy link

Setting the header param "Access-Control-Expose-Headers" = "*" from the server side did the trick.

@V1CTOR-cloud
Copy link

Setting the header param "Access-Control-Expose-Headers" = "*" from the server side did the trick.

Bless you

@randomizedcoder
Copy link

+1 on the bless you!

Created MR to document this: #1062

@randomizedcoder
Copy link

New smaller MR: #1083

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants