Chine
Chine

Reputation: 21

chrome app and mixed content

We're building a HTTPS single page application for internal use. It contains HTTP external links. If embedded in apk/webview, there's no problem. If we try on windows workstation, in a browser, we have "mixed content errors". We don't want to add --allow-running-insecure-content to Chrome shortcut.

So my question is , is there a "--allow-running-insecure-content" behavior in Chrome App or Chrome Extension or another way to use our web application?

Thx!

Upvotes: 1

Views: 845

Answers (1)

Alex Griffis
Alex Griffis

Reputation: 728

Since you cannot modify the Content Security Policy for your chrome packaged app (you may for extensions), you need to use one of several approved methods.

The External Content page has the approved methods and caveats for loading various content including embedding web pages. A basic webview syntax is:

<webview src="http://news.google.com/" width="640" height="480"></webview>

You will also need "permissions": "webview" added to your manifest.json.

Upvotes: -1

Related Questions