jiathis HTTPS Unsupported Solution
·
1 min read
·
144
Words
·
-Views
-Comments
Third-party social sharing plugins commonly used are baidushare, jiathis, but these don’t support HTTPS. If used on HTTPS sites, they will report errors. How to solve? Actually can only modify source code to solve, or use reverse proxy.
Baidu share source code modification solution see here
jiathis JS source code is already obfuscated, so cannot modify source code to solve. If still want to use, can directly download related code and deploy on your own WEB, but resource paths cannot change
Structure and resources as follows:
jia.js file can be placed freely, but related css and img resources don’t necessarily need to be placed this way (in root path)
Other Solutions?
- Use open source solutions - such as https://github.com/overtrue/share.js
- Write your own, because actual sharing media are few, commonly used are just WeChat, Weibo, and WeChat involves QR codes, most others are just links