How to get Chrome to allow mixed content?

260,443

Solution 1

Steps as of Chrome v91 (6/17/2021):

  1. Click the Not secure warning next to the URL

enter image description here

  1. Click Site settings on the popup box

enter image description here

  1. Near the bottom of the list is Insecure content, change this to Allow

enter image description here

  1. Close settings, go back to the site, and Refresh the page

Older Chrome Versions:

timmmy_42 answers this on: https://productforums.google.com/forum/#!topic/chrome/OrwppKWbKnc

In the address bar at the right end should be a 'shield' icon, you can click on that to run insecure content.

This worked for me in Chromium-dev Version 36.0.1933.0 (262849).

Solution 2

In Windows open the Run window (Win + R):

C:\Program Files (x86)\Google\Chrome\Application\chrome.exe  --allow-running-insecure-content

In OS-X Terminal.app run the following command +space:

open /Applications/Google\ Chrome.app --args --allow-running-insecure-content

Note: You seem to be able to add the argument --allow-running-insecure-content to bypass this for development. But its not a recommended solution.

Solution 3

The shield icon that is being mentioned was not in the sidebar for me either, however I solved it doing the following:

Find the shield icon located in the far right of the URL input bar,

Once clicked, the following popup should appear wherein you can click Load unsafe scripts,

That should result in a page refresh and the scripts should start working. What used to be an error,

is now merely a warning,

OS: Windows 10

Chrome Version: 76.0.3809.132 (Official Build) (64-bit)


Edit #1

On version 66.0.3359.117, the shield icon is still available:

Notice how the popup design has changed, so this is Chrome on version 66.0.3359.117.

Note: The shield icon will only appear when you try to load insecure content (content from http) while on https.

Solution 4

On OSX using the current Chrome build (2/20/2020, 79.0.3945.130), you can:

Click on the 'i' info icon on the left side of address bar.

Click Site Settings

Scroll down to Insecure content

Change it from Blocked (Default) to Allow

Reload the page and try your action again.

Solution 5

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" " --allow-running-insecure-content"

Share:
260,443

Related videos on Youtube

Trant
Author by

Trant

Updated on March 08, 2022

Comments

  • Trant
    Trant about 2 years

    Chrome browser by default is blocking mixed content. How do I adjust my settings/configuration to allow mixed content without making any adjustments on the UI every time?

    I have found two solutions but neither of them work:

    1. Several articles say you can adjust this under the Security section of "Under the Hood" in the Options. This option no longer seems to exist. There is no Under The Hood tab and there is no such dropdown to adjust how Chrome handles mixed content as far as I can tell.
    2. Another option is to add the --allow-running-insecure-content flag to your command line. I did this like so: "C:\Program Files\Google\Chrome\Application\chrome.exe" --allow-running-insecure-content. However this made no difference. If I tried adding the flag inside the double quotes, then Windows complains saying it is invalid.

    So what option do I have now with the latest version of Chrome?

    • Jimmy D
      Jimmy D over 10 years
      @StevenV I can think of may scenarios when I might want or need to "defeat" this behavior. but that's not really the question. The op wants to know HOW to do it. If you don't know, then why bother commenting? op - Your #1 works for me on a https site that references non-https images for example. Although this isn't a programming question and shouldn't be on SO. Post it on SuperUser instead.
    • Trant
      Trant over 10 years
      So you have a Under the Hood section of your Chrome settings? I dont!
    • advncd
      advncd about 4 years
  • Alexander Bondar
    Alexander Bondar over 8 years
    Chrome 48 seems not to have the shield icon anymore.
  • Ivan Vegner
    Ivan Vegner about 8 years
    @kwill When I click on the shield icon and choose to run unsafe scripts, that still does not fix the issue. Are there any alternatives?
  • kwill
    kwill about 8 years
    See January 5th, 2016 post from "che" below.
  • David Cruwys
    David Cruwys over 7 years
    This does not appear to work in Chrome 55, I have posted a question regarding this here. stackoverflow.com/questions/41498423/…
  • David Cruwys
    David Cruwys over 7 years
    I found I had to use these two settings to get my extension working in developer mode using Mixed Content. I have a detailed explanation here. stackoverflow.com/questions/41498423/…
  • dragon788
    dragon788 about 7 years
    To clarify it isn't necessarily showing the content automatically, it simply isn't signaling with a triangular warning on the https:// portion of the URL.
  • A.W.
    A.W. almost 7 years
    No icon in Chrome 59
  • spottedmahn
    spottedmahn over 6 years
    I tried C:\Program Files (x86)\Google\Chrome\Application\chrome.exe --allow-running-insecure-content and that did not work for me. And I tried with --disable-web-security. The key was --user-data-dir
  • user3439968
    user3439968 over 6 years
    Worked. But I can't find how to disable 'run insecure content'. You can enable it, but you can't disable it. Google Chrome Version 48.0.2564.116 (64-bit)
  • BobHy
    BobHy over 6 years
    No longer a viable answer. Chrome has removed the shield icon.
  • psycho brm
    psycho brm over 6 years
    I got Chrome Version 62.0.3202.94 (Official Build) (64-bit) and I got the shield icon. Might be because I'm redirecting https request to http://localhost.
  • Guillaume
    Guillaume about 6 years
    Works for me as well on Version 64.0.3282.167, and you just have to close the tab to disable it
  • Deepak Keynes
    Deepak Keynes about 6 years
    Mixed Content Issue
  • Script47
    Script47 about 6 years
    @Keynes The above simply mitigates the effects temporarily. If you wanted to solve it completely, ensure that all your outgoing requests are going to a secured (https) server instead of http.
  • Venkat
    Venkat about 6 years
    I'm not able see the shield icon, Chrome version: 66.0.3359.117
  • Script47
    Script47 about 6 years
    @Venkat it is still available for me. I've just updated to the latest version. Please see Edit #1.
  • BobHy
    BobHy over 5 years
    I tried this, it does not work. HSTS/PKP settings are to tell the browser to request HTTPS from the server even if the requested URL says http: or doesn't say any protocol at all. But the server is expected to support HTTPS, which is not what the OP asked for.
  • Nir Levy
    Nir Levy over 4 years
    Confirmed on 75.x
  • codemirror
    codemirror about 4 years
    Works in Google Chrome too
  • Jeremy
    Jeremy about 4 years
    @codemirror thanks, sorry, i had a typo in my original post. I meant, OSX using Chrome
  • ThomasRones
    ThomasRones over 3 years
    Working on Version 86.0.4240.75, but I also had to clear the cookies for this site (Found at the top of the site settings page)
  • Sabito 錆兎 stands with Ukraine
    Sabito 錆兎 stands with Ukraine over 3 years
    Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
  • Henrik Bøgelund Lavstsen
    Henrik Bøgelund Lavstsen about 3 years
    still valid answer, just click where the Shield icon used to be, the list of options is just alot larger but the option is still there.
  • Douglas Gaskell
    Douglas Gaskell over 2 years
    Even when insecure content is allowed, it still blocks mixed content.
  • Douglas Gaskell
    Douglas Gaskell over 2 years
    On chrome, it still blocks mixed content even after doing this.