本文介绍了Edge17-SEC7136-源未对资源进行完整性检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在jekyll网站上添加了一个插件( http://flexslider.woothemes.com/ ),直到Edge16&为止一切正常.在浏览器下面,但是,在Edge17中,我看到了控制台消息:

In a jekyll website, I added a plugin (http://flexslider.woothemes.com/), everything is working fine upto Edge16 & below browsers, however, in Edge17, I see the console message:

SEC7136: [Integrity] The origin '[insert url]' failed an integrity check for a style resource at '[url]'

此错误是关于什么的?有问题的文件(在这种情况下为CSS文件)如何导致Edge17& amp;中的完整性问题?不是以前的版本?

What is this error about? And how is the offending file, in this case, a CSS file, causing an integrity issue in Edge17 & not the previous version?

谢谢

推荐答案

这不是操作系统的错误.实际上,这是一项安全功能.从CDN加载外部JavaScript或CSS资源时,将具有完整性属性.如果值不正确,将不会加载资源.这是防止意外或恶意的第三方修改的保护措施.看来现在在Edge中强制执行了此验证.

This is not a bug with the OS. It's actually a security feature. When you load an external JavaScript or CSS resource from a CDN, there is an attribute for integrity. If the values aren't correct, the resource will not load. This is a protection against unexpected or malicious third party modification. It appears that this validation is now enforced in Edge.

要修复,您要做的就是更新代码中的CDN引用,并确保包含正确的完整性和跨域属性.

To fix, all you have to do is update your CDN references in your code, and be sure to include the correct integrity and crossorigin attributes.

此处是详细解释的出色资源.

这篇关于Edge17-SEC7136-源未对资源进行完整性检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 05:59