Firebase Hosted flutter app shows not a secure connection error when launching an external URL
194
I solved it! I just had to exclude the www.
in the url_launcher String and it will not display any SSL-Error.
![Cubii](https://i.stack.imgur.com/qAlGh.png?s=256&g=1)
Author by
Cubii
Updated on January 01, 2023Comments
-
Cubii over 1 year
When I open my Website hosted by Firebase Hosting Google Chrome or my Antivirus program does not let me access the page but shows me an error message:
This is not a secure connection. Hackers might try to steal your data from (website), for example, passwords, messages or credit card details.
Error code: NET::ERR_CERT_COMMON_NAME_INVALID
Any Ideas?
-
Hooshyar over 2 yearsIt's SSL certificate related, adding your index file or providing the website address will be useful.
-
Hooshyar over 2 yearsI have checked it on Safari, Chrome, Firefox, and Brave works perfectly no cert issues.
-
Cubii over 2 yearsOh yeah, you are right, thank you. But I found another Problem :( . If I use it with Flutter Plugin url_launcher and launch my website with launchUrl() I got the described problem.
-
Hooshyar over 2 yearsOverall the issue is not related to flutter, it is related to SSL configuration, what is the URL of the website you are trying to launch?
-
Cubii over 2 yearsIt's the same link as above. When you copy-paste nothing happens. But when you launch website in flutter-app with url_launcher package then this problem occures. On all links that are with my website address
-
Cubii over 2 years@Hooshyar where do I have to look for the index file? I still got no solution for the problem, because like this I can't use my Firebase hosted website like I want.
-
Hooshyar over 2 yearsI’ll check and let you know
-
Cubii over 2 yearsI solved it! I just had to miss out the www. in the url_launcher. But thank you very much @Hooshyar
-
Hooshyar over 2 yearsnice to hear that, please. answer your question here for others to use.
-