我有一个图片缩放工具,是从Bulk Resize Photos获得的。我需要将其添加到我CMS功能中称为Participant Centre。
由于某种原因,代码本身无法在参与者中心中工作(它显示为空白),但在Participant centre之外的HTML页面中可以工作。所以我想也许使用iframe
会起作用。
现在,iframe
的框架显示出来了,但内容没有显示。
HTML:
<div id="BulkResizePhotosEmbed"></div>
<script type="text/javascript" src="https://bulkresizephotos.com/js/integration.js">
</script>
<script>
bulkresizephotos.load({ "resize_type": "exact", "resize_value": "300", "secondary_resize_value": "400", "quality_level": "0.5", "extension": "jpg", "preserve_aspect_ratio": true, "transparent_background": true, "background_color": "ffffff" });
</script>
我可以帮您翻译以下内容,涉及IT技术相关:
我有以上代码在一个单独的HTML文档中,该文档托管在与参与者中心相同的服务器上。
HTML:
<iframe src="http://www.supportcbcf.com/site/PageNavigator/reus_image_resize.html"></iframe>
我也尝试了将上面的链接变成安全链接(
https
),但是它仍然无法加载。我在js fiddle中尝试了一下,但那里也无法工作。现在我不认为参与者中心会阻止任何javascript代码,因为它有一个温度计和募款美元,可以动态更新。我查看了控制台日志,没有收到任何错误信息。如能提供帮助,将不胜感激!
谢谢。
F12
)=>拒绝在框架中显示'https://...',因为其祖先违反了以下内容安全策略指令:“frame-ancestors 'self' *.facebook.com *.salesforce.com *.convio.net *.google.com *.force.com facebook.com salesforce.com convio.net google.com force.com”。
- blex