使用Polymer,我可以在本地http服务器上托管我的文件,但是当将文件上传到Dropbox的公共目录时,页面将不再呈现。
我能看到的本地服务器和dropbox之间唯一的主要区别是,dropbox通过https为页面提供服务。
控制台中没有出现我能看到的错误。
<!DOCTYPE html>
<html>
<head>
<script src="bower_components/webcomponentsjs/webcomponents.js"></script>
<script src="keys.js">
</script>
<script src="script.js">
</script>
<link rel="import" href="bower_components/core-elements/core-elements.html">
<link rel="import" href="bower_components/google-map/google-map.html">
<link rel="import" href="key-list.html">-剪短--
发布于 2015-02-06 20:02:22
我在控制台上看到错误。显然是https的一个问题。
Mixed Content: The page at 'https://dl.dropboxusercontent.com/u/11144544/keys/v2/index.html' was loaded over HTTPS, but requested an insecure stylesheet
'http://fonts.googleapis.com/css?family=Roboto:400,300,500,700|Source+Code+Pro'. This request has been blocked; the content must be served over HTTPS.尝试对google字体使用https,或者在同一个域中托管字体文件。
https://stackoverflow.com/questions/28373378
复制相似问题