Chrome destroys css with forcing https?

Hya folks,

After updating Chrome to the latest version (44.0.2403.89 m) it has problems showing my (wordpress) website correctly.

Read More

First of all when I try to go on my site, ie domain.com, it tries to use https instead of http and it gives an error that the connection is not secure / private (NET::ERR_CERT_AUTHORITY_INVALID).

Currently I am NOT using https, ssl on the page and have no plans to use it in the near future.

Before updating chrome I didn’t get any kind of warning like that while accessing my page. So first question would be if there is a way to disable / remove this kind of warning from chrome. It would really confuse new visitors accessing my page.

While accessing my page with HTTPS (after seeing the chrome’s warning and still proceeding to the page) it actually shows a page from my hosting provider (cause I dont have the hosting package with https enabled, it costs more). So it completely goes to the wrong page if the user just tries to access the site without typing in the “www” part (just the domainname ie: domain.com).

So if i currently want to view my webpage I need to type in WWW.domain.com, while doing so it goes to the http version of the page (winning). But now I’ve got a new problem, the CSS files are not loading because it tries to access all the css files via HTTPS protocol.

Before updating chrome, the website worked just fine. The exact same thing also happened to one of my other wordpress sites on an other domain with a different hosting provider :/ It gets me really worried.

Really looking for help… if you guys need any additional information, please let me know 🙂

Thanks in advance!!

Related posts

4 comments

  1. You can also temprorary fix this issue without updating the plugin by comment out these lines of code in pluginswoocommercewoocommerce.php:

    if ( ! isset( $_SERVER['HTTPS'] ) && ! empty( $_SERVER['HTTP_HTTPS'] ) ) { 
        $_SERVER['HTTPS'] = $_SERVER['HTTP_HTTPS']; 
    }
    
  2. Don’t know if you found a fix yet. But I had the exact same problem and I saw this morning that there is another Chrome update. So after the update my sites seem to work again without forcing the https protocol.

    Version at the moment: 44.0.2403.107 m

  3. SOLVED

    Just go Into Your WP-Theme -> Themes -> your Theme -> functions.php

    add This Line : $_SERVER[‘HTTPS’] = false;

    Note: If you don’t want SSL

    Thanks 🙂

Comments are closed.