Wordpress site broken adding https to urls

前端 未结 2 854
失恋的感觉
失恋的感觉 2021-01-14 23:03

I\'ve been notified that my Wordpress site is broken and the first thing I can tell is that it\'s broken cause it is automatically adding the https protocol to almost every

相关标签:
2条回答
  • 2021-01-14 23:41

    If you're using Google Chrome it might be an issue.

    Read that article I saw yesterday: https://ma.ttias.be/chrome-44-sending-https-header-by-mistake-breaking-web-applications-everywhere/

    0 讨论(0)
  • 2021-01-14 23:45

    This issue happened because the latest Chrome version (44.0.2403.89) sends HTTPS: 1 in request headers, which force the Wordpress site to use https.

    Follow up the bug report here, it seems Chrome Dev team is working on it and hope they can fix it in next stable release by next Tuesday.

    If you are using WooCommerce (most of the reports are from people who using it), you may want to consider one of these workarounds:

    • Update to latest WooCommerce version, according to this blog post, they already fixed it on 2.3.13
    • Open plugins\woocommerce\woocommerce.php and comment out these lines
    if ( ! isset( $_SERVER['HTTPS'] ) && ! empty( $_SERVER['HTTP_HTTPS'] ) ) { 
        $_SERVER['HTTPS'] = $_SERVER['HTTP_HTTPS']; 
    }
    
    0 讨论(0)
提交回复
热议问题