Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启用后报错:Failed to find a valid digest in the 'integrity' attribute for resource #20

Open
haibingqingxie opened this issue Jul 9, 2019 · 0 comments

Comments

@haibingqingxie
Copy link

如题,启用后报错,说 integrity 属性验证不正确,资源文件内容有修改。

网上查阅到生成 integrity 的摘要签名的指令,样例如下:

curl https://example.com/static/js/other/zepto.js | openssl dgst -sha256 -binary | openssl enc -base64 -A

SqDGw6Kj/0oRoN4IZW+aKtiajJi57ouG9DFqwtfons4=

签名算法和摘要签名内容用 - 分隔,替换了 Plugin.php 文件里的 $INTEGRITY 变量值,然后才好的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant