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

HTTPS requests not working on iOS when running from flutter web #1193

Open
mand027 opened this issue May 6, 2024 · 0 comments
Open

HTTPS requests not working on iOS when running from flutter web #1193

mand027 opened this issue May 6, 2024 · 0 comments
Labels
package:http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@mand027
Copy link

mand027 commented May 6, 2024

I have a web app that i developed on flutter 3.19.6 and i am currently using HTTP 1.2.1

var token = await user.getIdToken(); final http.Response response = await http.get( Uri.https(baseApiURL, '/user/${user.uid}'), headers: { 'Authorization': "Bearer $token", }, );
i am calling the http this way, but specifically on iOS when running on chrome or safari or any browser the console shows an error that the headers must not be empty. and my token gets shortened into wierd characters.

i already tested on chrome on windows, macOS and android and everything runs smoothly.

@mand027 mand027 added package:http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels May 6, 2024
@mand027 mand027 changed the title HTTPS requests not working on iOS when running from a web app HTTPS requests not working on iOS when running from flutter web May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

1 participant