Quantcast
Channel: Updates
Viewing all articles
Browse latest Browse all 599

Avoiding the Not Secure Warning in Chrome

$
0
0

Avoiding the Not Secure Warning in Chrome

As announced in September, Chrome will soon mark non-secure pages containing password and credit card input fields as Not Secure in the URL bar.

This document is intended to aid Web Developers in updating their sites to avoid this warning.

Enable warnings

Warnings will be enabled by default for everyone in Chrome 56, slated for release in January 2017.

To test the upcoming user experience before then, install the latest Google Chrome Canary build. At the time of this writing, Chrome Canary is version 56. Version 56.0.2895.0 is the first version to include detection of sensitive fields. You can see an example of the browser’s warning behavior on this page if you open it in Chrome 56.0.2895.0 or later, then view the console in DevTools.

When the Not Secure state is shown, the DevTools console shows the message In Chrome M56 (Jan 2017), this page will be marked as “not secure” in the URL bar. For more information, see [https://goo.gl/zmWq3m](https://security.googleblog.com/2016/09/moving-towards-more-secure-web.html).

An example console warning

Resolve warnings

To ensure that the Not Secure warning is not displayed for your pages, you must ensure that all forms containing <input type=password> elements and any inputs detected as credit card fields are present only on secure origins. This means that the top-level page must be HTTPS and, if the input is in an iframe, that iframe must also be served over HTTPS.

Warning: It is NOT sufficient to place an HTTPS iframe inside a HTTP page; the top-level page itself must be HTTPS as well.

If your site overlays an HTTPS login frame over HTTP pages...

An example HTTPS log in over HTTP

...you will need to change the site to either use HTTPS for the entire site (ideal) or redirect the browser window to an HTTPS page containing the login form:

An example HTTPS log in over HTTPS

Long term - Use HTTPS everywhere

Eventually, Chrome will show a Not Secure warning for all pages served over HTTP, regardless of whether or not the page contains sensitive input fields. Even if you adopt one of the more targeted resolutions above, you should plan to migrate your site to use HTTPS for all pages.


Viewing all articles
Browse latest Browse all 599

Trending Articles