如何在https页面异步请求http地址
在做的一个Chrome插件,是在https页面激活的,现在需要请求另外一个http接口,在manifest.json中已经配置了permission,基于jquery的ajax方法。
好吧,上面的背景不重要,现状:
1、在http页面请求http页面,没问题。
2、在https页面请求http页面,有问题,提示 [blocked] The page was loaded over HTTPS, but ran insecure content from '': this content should also be loaded over HTTPS.
问题:如何使用jQuery在https页面请求http接口?和跨域没关,如果需要修改chrome的设置也可以。
jquery jquery-ajax chrome-extension