The page at [url] ran insecure content from [url] in chrome

后端 未结 5 2060
梦谈多话
梦谈多话 2021-02-09 09:40

When i open a link this shows following message in chrome [blocked] The page at https://www.loadmytrailer.com/beta/postload.php ran insecure content from http://code.jquery.c

5条回答
  •  孤街浪徒
    2021-02-09 09:59

    You can use protocol-relative URLs.The browser will use the page's protocol to try to obtain the file. On non-secure pages- http. On secure pages it will use https.

    For example, instead of:

    http://code.jquery.com/ui/1.10.2/jquery-ui.js
    

    ...you can use:

    //code.jquery.com/ui/1.10.2/jquery-ui.js
    

    ! notice absence of protocol

提交回复
热议问题