解决在线翻译失效的问题
发现在线翻译点击之后没反应了
调试之后报错
“This request has been blocked; the content must be served over HTTPS”
原因:在 HTTPS 承载的页面上不允许出现 http 请求
解决方法:
很简单 改成https协议请求jsonp
1 | jQuery(function () { |
署名-非商业性使用本文采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 ZEKALRYN'S BLOG!
评论
发现在线翻译点击之后没反应了
调试之后报错
“This request has been blocked; the content must be served over HTTPS”
原因:在 HTTPS 承载的页面上不允许出现 http 请求
解决方法:
很简单 改成https协议请求jsonp
1 | jQuery(function () { |