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
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: