Using a self-signed certificate with a chrome packaged app - google-chrome-app

I'm developing a Chrome packaged app (not an extension), which connects to the server over secure WebSocket. The server's certificate is self-signed, and this cannot be changed.
The problem is that on the chrome packaged app, the connection attempt fails with an ERR_INSECURE_RESPONSE error.
In the Chrome browser, there is a work-around: The browser opens a security warning page. If user chooses to continue to the website, it goes on to the remote page. However there is no such work-around in a packaged app. Instead, the connection attempt just fails.
Is there any way to code the Chrome packaged app to accept a self-signed certificate?

Found a work-around - open a browser from inside the chrome app.
This is done by using a webview HTML element (webview is the chrome app name for iframe).
Now the chrome app user can accept the security risks of using a self-signed certificate, just as the web app user does.

Related

How to run flutter web application locally with https?

I built flutter application for web. And able to launch the app using the below command.
flutter run -d chrome
But the above command launches my web app in chrome with http://localhost:59111.
I need to test web application in https:// not with http://
Can anyone suggest me to launch web app with https:// localhost.
You can use mkcert to mock a trusted certificate while testing locally using localhost. mkcert automatically creates and installs a local Certificate Authority (CA), and generates locally-trusted certificates.

how to give phonegap app a valid redirect uri

i am begginner in phonegap and using android studio for editing and running phonegap coding
i have to add facebook login in my phonegapp app ,for this i am using openfb.js plugin
link -- https://github.com/ccoenraets/OpenFB
sucessfully integrated all things but when running its showing me valid oauth redirect uri error
what will be "Valid OAuth redirect URIs" if my project file is saved in computer c drive and not on localhost

Visual Studio 2015-Angular-Cordova-facebook login error

My Visual studio 2015 Cordova app, which uses facebook login is working fine in Ripple emulator. However, when I try to run the same app in Android emulator or in device, I get the error: “Given URL is not allowed by the Application configuration: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.".
In my facebook settings (https://developers.facebook.com) for website I have following entry:
Site URL: http://localhost:4400/
Mobile Site URL: http://localhost:4400/
In Advanced Tab, OAuth settings, both Client OAuth Login and Embedded browser OAuth Login are “yes”.
I tried with “Valid OAuth redirect URIs” keeping empty or http://localhost:4400/login
Hosts file does have an 127.0.0.1 localhost entry.
What should be the right URL in Site URL for an application in Basic and Advanced tab of http://developers.facebook.com? Wondering if these fields are ignored for a mobile app?
Like on a device, when running in the Android emulator, the Android OS believes "localhost" is the device itself rather than your PC. This is just like running Windows in a VM in this regard. Try fully qualifying your machine name or using an external IP instead.

Facebook App show blank in PC chrome, but work in phone's chrome

I wrote a facebook app.
https://apps.facebook.com/nusquare-free/
It shows blank page in PC chrome for https://apps.facebook.com/nusquare-free/
But it works in mobile phone chroma, safari and PC safari.
When I direct to http://nuphoto.com.tw/freemobile/ -->This is my web page for facebook APP.
It works for every browser, including PC browser.
Could you tell me how to make it work for PC chrome when directly connect to
https://apps.facebook.com/nusquare-free/ ?
Is this because my web site is not SSL authenticated ? or the setting problems ?
But it works on cellphone(iphone and android).
Thank you very much.
I found it's because https/ SSL certification problem.
After I apply a issued SSL certification and install it in my server. It's solved.

FB canvas app Chrome and https

Why chrome is not showing my canvas application on facebook ?
It will show it when you surft direct to it om our domain. But it will give the error below when accessing it it through the apps.facebook.com domain.
We are running on a self signed certificate. Using Firefox on fb canvas app gives you an option if i want to continue surfing an insecure site. Chrome will show an error with no options.
This webpage is not available
might be temporarily down or it may have moved permanently to a new web address.
Error 501 (net::ERR_INSECURE_RESPONSE): Unknown error.
Google chrome version 16.0.912.63 m
Had the same problem and solved it by going to my local canvas site, exported the certificate (as p7b) and imported it again into Chrome. There was an older local certificate installed, maybe that was the problem.