diff --git a/src/content/_contributors.yaml b/src/content/_contributors.yaml index a918597b0ff..a78e27d4119 100644 --- a/src/content/_contributors.yaml +++ b/src/content/_contributors.yaml @@ -628,17 +628,20 @@ samthorogood: email: thorogood@google.com description: "Evangelises Chrome and the mobile web in the Developer Relations team at Google." -joelvanbergen: +johyphenel: name: given: Jo-el family: van Bergen org: name: Google - unit: Social privacy and security + unit: Software engineer country: USA role: - author - email: lowf@google.com + homepage: https://plus.google.com/+Jo-elvanBergen + google: +Jo-elvanBergen + twitter: johyphenel + email: jo-el@google.com mikewest: name: diff --git a/src/content/en/fundamentals/security/avoid-mixed-content/_code/puppy-thumb.jpg b/src/content/en/fundamentals/security/avoid-mixed-content/_code/puppy-thumb.jpg deleted file mode 100644 index e55b9b75ca8..00000000000 Binary files a/src/content/en/fundamentals/security/avoid-mixed-content/_code/puppy-thumb.jpg and /dev/null differ diff --git a/src/content/en/fundamentals/security/avoid-mixed-content/_code/active-mixed-content.html b/src/content/en/fundamentals/security/prevent-mixed-content/_code/active-mixed-content.html similarity index 92% rename from src/content/en/fundamentals/security/avoid-mixed-content/_code/active-mixed-content.html rename to src/content/en/fundamentals/security/prevent-mixed-content/_code/active-mixed-content.html index afbeedddc5f..9f3b503415e 100644 --- a/src/content/en/fundamentals/security/avoid-mixed-content/_code/active-mixed-content.html +++ b/src/content/en/fundamentals/security/prevent-mixed-content/_code/active-mixed-content.html @@ -44,7 +44,7 @@
- View page over: HTTP - HTTPS + View page over: HTTP - HTTPS
Several examples of active mixed content. When viewed over HTTPS most browsers block this content and display errors in the JavaScript console. @@ -59,11 +59,12 @@
Loading insecure iframe...
- + + diff --git a/src/content/en/fundamentals/security/avoid-mixed-content/fixing-mixed-content.markdown b/src/content/en/fundamentals/security/prevent-mixed-content/fixing-mixed-content.markdown similarity index 76% rename from src/content/en/fundamentals/security/avoid-mixed-content/fixing-mixed-content.markdown rename to src/content/en/fundamentals/security/prevent-mixed-content/fixing-mixed-content.markdown index 06c586ca346..c50fe78c2a9 100644 --- a/src/content/en/fundamentals/security/avoid-mixed-content/fixing-mixed-content.markdown +++ b/src/content/en/fundamentals/security/prevent-mixed-content/fixing-mixed-content.markdown @@ -1,11 +1,11 @@ --- layout: shared/narrow title: "Fixing mixed content" -description: "intro doc" -published_on: 2015-09-21 -updated_on: 2015-09-21 +description: "Learn how to find and fix mixed content, keeping your site secure." +published_on: 2015-09-28 +updated_on: 2015-09-28 authors: - - joelvanbergen + - johyphenel translation_priority: 1 key-takeaways: - "Always use https:// URLs when loading resources on your page." @@ -18,13 +18,13 @@ notes: ---- Finding and fixing mixed content can be time-consuming task; but it is an + Finding and fixing mixed content can be a time-consuming task; but it is an important task nonetheless. Thankfully, there are some tools available to help with this process.
This guide discusses tools and techniques to find and fix mixed content; for -more information on mixed content itself, see our [previous guide](#TODO) on this topic. +more information on mixed content itself, see our [previous guide](.) on this topic. {% include shared/toc.liquid %} @@ -48,24 +48,29 @@ console can be opened from the View menu, _View_ -> _Developer_ -> _JavaScript Console_ or by right-clicking the page, selecting _Inspect Element_ then selecting _Console_. -The passive mixed content example in our [previous guide](#TODO) -will cause mixed content warnings to be displayed, like the one below: +The [passive mixed content example](https://googlesamples.github.io/web-fundamentals/samples/discovery-and-distribution/avoid-mixed-content/passive-mixed-content.html) in our [previous guide](what-is-mixed-content#passive-mixed-content) will cause mixed content warnings to be displayed, like the ones below: +{% link_sample_button src=_code/passive-mixed-content.html %} + Try sample +{% endlink_sample_button %} + While the active mixed content example will cause mixed content errors to be -display: +displayed: + + + +{% link_sample_button src=_code/active-mixed-content.html %} + Try sample +{% endlink_sample_button %} The `http://` URLs listed in these errors and warnings should be fixed in your -sites source, it helps to make a list of these URLs, along with the page you +site's source, it helps to make a list of these URLs, along with the page you found them on, to help you fix them later. {% include shared/remember.liquid list=page.notes.current-page %} @@ -74,8 +79,8 @@ found them on, to help you fix them later. You can search for mixed content directly in your source code. Search for `http://` in your source and look for tags that include HTTP URL attributes. -Specifically, you are looking for the tags listed in the [mixed content types & security threats associated](#TODO) section in the [background on mixed content](#TODO) guide. -Note that having `http://` in the href attribute of anchor tags (`a`) +Specifically, you are looking for the tags listed in the [mixed content types & security threats associated](what-is-mixed-content#mixed-content-types--security-threats-associated) section of our previous guide. +Note that having `http://` in the href attribute of anchor tags (``) is often not a mixed content issue, with some notable exceptions discussed later. If you have a list of HTTP URLs from Chrome mixed content errors and warnings, @@ -90,14 +95,13 @@ follow these steps to fix it. Assuming you have the following mixed content error in Chrome: Which you found in source here: {% highlight html %} - + {% endhighlight %} #### Step 1 @@ -106,20 +110,32 @@ Check that the URL is available over HTTPS. Open a new tab in your browser, enter the URL in the address bar, and change `http://` to `https://` If the resource displayed is the same over **HTTP** and **HTTPS**, everything is OK, -proceed to step 2. - - - -If you see a certificate warning, or if the content can't be displayed at all -over **HTTPS**, it means the resource is not available securely. - - +proceed to [step 2](#step-2). + +