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
{{ message }}
Repository navigation
Provide a way to serve localhost through HTTPS #60704
I need to test input validations and autofills on a form that takes credit card information.
When running flutter run -d web-server or flutter run -d chrome it opens up a website served on localhost through HTTP. That disallows the autofill for credit card information as you can see on this screenshot:
No worries, easy enough to deploy a test site via firebase.
Reacted by Alexander Belokon, José Daniel Calle Briceño, michalkubizna, Justine Che T. Romero, Sylvanus Kateile, squaregen, Sadi Mahmud, Taras Tataryn, Andrew, Jesse Johnson and 1 more
I have the problem with authentication. I need https to test app's with authentication
Reacted by Morteza Dehghani, maares, Arnaud Delubac, Ying Wang, Alexander Belokon, timc-zuma, GiYoung Shin, Justine Che T. Romero, squaregen, Matt Strenk and 3 more
Reacted by Ying Wang, Alexander Belokon, Bordunos, offokansi Kenechukwu, timc-zuma, GiYoung Shin, arualana, Luk, Justine Che T. Romero, squaregen and 9 more
Hi any update on this? we are building a enterprise web app and we need https on local dev for testing payments service such as credit/debit cards. Its a hassle right now since browsers dont allow access to credit cards over http. badly need this support right now. Is there a work around? like using a custom web server and deploy it?
some options to launch with flags or switch cookie to lax, strict, .. for me its no option coz backend is outside
to be clear
need solution to run "flutter run -d chrome" locally with full console support and application must use https serve, not http.
currently i solved my problem to work with cookies by diffrent way,
but hope in future request to serve localhost on https in flutter d web will be fixed
I did manage to get my flutter app running in debug mode behind nginx reverse proxy.
I commented out the proxy_set_header and proxy_cache_bypass in the config.
While I agree this issue can be a real obstacle for web development, I am not sure ranting about it here will help you in any way. And claiming that no one is using Flutter on web is short-sighted at best. It it doesn't offer what your use-case needs, I understand, but a tirade in a bug ticket isn't going to help you with that.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
jonahwilliams commentedon Jul 1, 2020
Seems like adding an optional dependency on mkrcert and then exposing a command line option to run via https would be a useful feature in general.
MichealReed commentedon Jul 14, 2020
@jonahwilliams any workarounds to serve https until then?
jonahwilliams commentedon Jul 14, 2020
Not that I'm aware of
MichealReed commentedon Jul 14, 2020
No worries, easy enough to deploy a test site via firebase.
bitelyus commentedon Jan 31, 2021
... and we need it now :) ... loving flutter
SergeBerwert commentedon Apr 19, 2021
I have the problem with authentication. I need https to test app's with authentication
mrtdeh commentedon Aug 12, 2021
I need https in localhost...
DesmondFox commentedon Oct 11, 2021
any progress?
siva2204 commentedon Oct 21, 2021
i'm working with grpc(http2) as backend, badly need https
ricksondpenha commentedon Nov 25, 2021
Hi any update on this? we are building a enterprise web app and we need https on local dev for testing payments service such as credit/debit cards. Its a hassle right now since browsers dont allow access to credit cards over http. badly need this support right now. Is there a work around? like using a custom web server and deploy it?
35 remaining items
shamilsun commentedon Jul 7, 2023
Terrible, havent solution for 2 years.
my case is also for cookie support on dev side,
i hve tried
to be clear
need solution to run "flutter run -d chrome" locally with full console support and application must use https serve, not http.
currently i solved my problem to work with cookies by diffrent way,
but hope in future request to serve localhost on https in flutter d web will be fixed
marcov-dart commentedon Jul 12, 2023
I did manage to get my flutter app running in debug mode behind nginx reverse proxy.
I commented out the proxy_set_header and proxy_cache_bypass in the config.
location / {
proxy_pass http://localhost:50068;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
#proxy_set_header Host $host;
#proxy_cache_bypass $http_upgrade;
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#proxy_set_header X-Forwarded-Proto $scheme;
#proxy_set_header X-Real-IP $remote_addr;
}
Allow HTTPS URL with --web-launch-url
JustroX commentedon Oct 5, 2023
I definitely agree with @hampsterx, this is also the issue that I consider the final straw. Moved away from flutter since then.
erickok commentedon Oct 5, 2023
While I agree this issue can be a real obstacle for web development, I am not sure ranting about it here will help you in any way. And claiming that no one is using Flutter on web is short-sighted at best. It it doesn't offer what your use-case needs, I understand, but a tirade in a bug ticket isn't going to help you with that.
#60704: Pass cert for TLS localhost connection (#106635)
github-actions commentedon Nov 30, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.ditman commentedon Feb 14, 2024
Flutter run added support for TLS connections in localhost with self-signed certs, check this out: