A Weird Behavior with Images and attachments

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SpaceStar
    Senior Member
    • Apr 2005
    • 171

    A Weird Behavior with Images and attachments

    Hello

    I am seeing a weird thing on my board.

    Some of images/attachments are not visible after activating HTTS - error something like shown in the image below.

    Any experience or knowledge about this?

    Regards
    Attached Files
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73981

    #2
    This is due to your browser settings and by design from the browser companies. If you want to show HTTP:// content when using HTTPS:// you have to lower the security settings in your browser. Each user will have to do this on their own browsers. This is one of the reasons why we recommend using attachments instead of the [img] bbcode. To fix this, you'll have to manually edit each piece of content and update their URLs.

    https://developers.google.com/web/fu...-mixed-content
    https://support.mozilla.org/en-US/kb/mixed-content-blocking-firefox
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • SpaceStar
      Senior Member
      • Apr 2005
      • 171

      #3
      Originally posted by Wayne Luke
      This is due to your browser settings and by design from the browser companies. If you want to show HTTP:// content when using HTTPS:// you have to lower the security settings in your browser. Each user will have to do this on their own browsers. This is one of the reasons why we recommend using attachments instead of the [img] bbcode. To fix this, you'll have to manually edit each piece of content and update their URLs.

      https://developers.google.com/web/fu...-mixed-content
      https://support.mozilla.org/en-US/kb/mixed-content-blocking-firefox
      Thanks for the quick answer - had already an idea that was the issue but - there are 100s of images

      Anyway thanks

      Comment

      • SpaceStar
        Senior Member
        • Apr 2005
        • 171

        #4
        Wayne Luke

        ​​​​​​​I have another question

        I can now see that I once had a gallery running on my board, which is not installed anymore but Images were still visible.

        Those image are giving same error - is there an easy way to deal with those? All those images are running from my own server.

        Comment

        • SpaceStar
          Senior Member
          • Apr 2005
          • 171

          #5
          To others who face similar issue, I have found a very easy solution...

          if you have access to your server you cad add this directive to the apache or nginx

          add_header Content-Security-Policy upgrade-insecure-requests;

          This will - in easy term - put an s to http for the image. Keep in mind if the image is not present, this will still no show.

          Comment

          • glennrocksvb
            Former vBulletin Developer
            • Mar 2011
            • 4011
            • 5.7.X

            #6
            Another way of doing that is to add this meta tag in the head_include template.

            HTML Code:
            <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
            To block mixed.content;
            ​​​​​
            HTML Code:
            ​​​​​​<meta http-equiv="Content-Security-Policy" content="block-all-mixed-content" />
            Or in the directive on the server:

            Content-Security-Policy: block-all-mixed-content

            Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

            Comment

            Related Topics

            Collapse

            Working...