theme-next / hexo-leancloud-counter-security

A plugin to fix a serious security bug in leancloud visitor counter for NexT.
GNU Lesser General Public License v3.0
34 stars 11 forks source link

Deploying: leancloud_counter_security_sync ERROR #24

Open fomiuna opened 3 years ago

fomiuna commented 3 years ago

Hello! I was implementing the counter function in Hexo NexT with LeanCloud according to [1]https://leaferx.online/2018/03/16/lc-security-en/. But after deploying, the counting still didn't work (remained 0). Then I turned to check [2]https://github.com/theme-next/hexo-leancloud-counter-security#usage and found that there was an additional server_url attribute in leancloud_counter_security of site config which [1] did not have. So I used https://leancloud.cn as url but I got Unauthorized [401 POST] ERROR when deploying leancloud_counter_security_sync. Then I tried my blog url but got the undefined [405 POST] ERROR.
Could anyone offer some help? Thanks!
p.s. What's the relation between the server_url in leancloud_visitors in theme config and the server_url in leancloud_counter_security in site config?

LEAFERx commented 3 years ago

See https://leancloud.cn/docs/custom-api-domain-guide.html#hash-1410615135

域名绑定指南 - LeanCloud 文档