admin管理员组

文章数量:1316828

In chrome beta version I got the below error in one of my app,

Failed to find a valid digest in the 'integrity' attribute for resource 'http://localhost:8000/assets/vendor-2d2d91b98d3771c414a0b039e0b4d8c1.js' with puted SHA-256 integrity 'RtMfPvtdjkEbERLgZ70Z5f8rCHbsou/DcqEZCXiM8ME='. The resource has been blocked.

As github thread pointed out that its fixed but I am getting this error in ember-cli-2.14.1 and "ember-cli-sri": "^2.1.0", so I am going to include integrity=''. I would like to know , is there any consequences for this change?

In chrome beta version I got the below error in one of my app,

Failed to find a valid digest in the 'integrity' attribute for resource 'http://localhost:8000/assets/vendor-2d2d91b98d3771c414a0b039e0b4d8c1.js' with puted SHA-256 integrity 'RtMfPvtdjkEbERLgZ70Z5f8rCHbsou/DcqEZCXiM8ME='. The resource has been blocked.

As github thread pointed out that its fixed but I am getting this error in ember-cli-2.14.1 and "ember-cli-sri": "^2.1.0", so I am going to include integrity=''. I would like to know , is there any consequences for this change?

Share Improve this question asked Jan 24, 2018 at 6:46 Ember FreakEmber Freak 12.9k5 gold badges26 silver badges55 bronze badges 1
  • In your linked thread, someone mentions seeing this error message in the production build and someone else points out that that is probably a different issue. I am seeing this problem now with ember-cli 2.18.2 and (non-beta) Chrome 66 (possibly since 65) and only when reloading my app after deploying a new version - it goes away after clearing the browser cache, but I would like to know the root cause, too. – arne.b Commented Apr 24, 2018 at 7:32
Add a ment  | 

1 Answer 1

Reset to default 6

the script or css you draw in(maybe in CDN) has changed.But your html used integrity to ensure the file not changed. for example:

<script src="https://code.jquery./jquery-3.2.1.min.js" integrity="sha384-xBuQ/xzmlsLoJpyjoggmTEz8OWUFM0/RC5BsqQBDX2v5cMvDHcMakNTNrHIW2I5f" crossorigin="anonymous"></script>

本文标签: