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

How to get custom headers response on web? #1423

Closed
polpenyarrojaNik opened this issue Feb 11, 2022 · 1 comment
Closed

How to get custom headers response on web? #1423

polpenyarrojaNik opened this issue Feb 11, 2022 · 1 comment

Comments

@polpenyarrojaNik
Copy link

I doing a Flutter app and I using dio to connect app with my web service. When I want to access to custom headers in response, on mobile I don't have any problem, but this headers on web not be available and get different.

My code:

final dio = Dio(); final response = await dio.getUri(requestUri, options: Options(headers: { 'authorization': 'Bearer ${credentials!.accessToken}', }));

How I do to on web and mobile get a same custom headers?

@jgoyvaerts
Copy link
Contributor

This issue has been created many times in the past, please use the search feature before creating new issues.

More info here: #1027 (comment)

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

2 participants