Including Twitter Widgets.js via HTTPS

后端 未结 6 2173
面向向阳花
面向向阳花 2021-02-08 03:23

I\'m having a minor problem with Mixed-content on HTTPS served pages on our site, when we include the http://platform.twitter.com/widgets.js

Apparently Twitter doesn\'t

6条回答
  •  無奈伤痛
    2021-02-08 04:00

    I managed to solve this by looking at the code behind the Follow button on https://dev.twitter.com

    You don't need to include the http://platform.twitter.com/widgets.js. On the place where you want your Follow button, simply put the following:

    
    

    This allows you to have an https Twitter Follow button without the Mixed Content message.

提交回复
热议问题