使脚本内容对HTTPS显示“安全"(散景) [英] Making script content 'safe' for HTTPS display (Bokeh)

查看:76
本文介绍了使脚本内容对HTTPS显示“安全"(散景)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找解决方案,并从 maria saz 中遇到了一个已删除的问题.幸运的是,我能够

I was searching for a solution and came across a removed question from maria saz. Fortunately, I was able to see it cached by google. Since I have the exact same question, I borrowed the original text:

" 我正在使用内嵌嵌入功能来构建具有散景图的网站.但是,使用https连接到站点会阻止绘制图,因为源被认为是未经身份验证"的.有办法解决吗?

""" I'm building a website with Bokeh plots, using inline embedding. However, using an https connection to the site blocks the plots from being rendered, as the source is deemed 'unauthenticated'. Is there a way to solve this?

在安全概述"中显示:

被阻止的混合内容您的页面请求了被阻止的不安全资源.

Blocked mixed content Your page requested insecure resources that were blocked.

两个被阻止的请求在哪里:

Where the two blocked requests were:

bokeh-0.12.1.min.css

bokeh-0.12.1.min.css

bokeh-0.12.1.min.js

bokeh-0.12.1.min.js

... ""

就我而言,我可以添加一些其他信息.该网站是使用Django和Google App Engine构建的,如果我允许不安全的内容,散景图将按预期工作.

In my case, I can add a bit of further information. The site is being built using django and google app engine, and if I allow the unsafe content, the bokeh plots work as expected.

如何提供我的内容,以便脚本可以在没有警告的情况下加载?

How can I serve my content so the scripts will load without the warning?

推荐答案

仅通过使用"https://"引用CDN地址即可解决此问题

This issue was addressed simply by referring to the CDN address with "https://"

请参见散景嵌入笔记

这篇关于使脚本内容对HTTPS显示“安全"(散景)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆