1

整合性ハッシュ値が無効な場合に生成されるサブリソースの整合性エラー メッセージを傍受する方法を探しています。ページ上の JavaScript を使用してこれらのイベントを傍受する方法、またはノードに無効なintegrityプロパティがあるかどうかを検出する方法はありますか?

たとえば、次のエラー メッセージがあります。

None of the “sha384” hashes in the integrity attribute match the content of the sub-resource.

Failed to find a valid digest in the 'integrity' attribute for resource 'http://path/to/file' with computed SHA-256 integrity '[hash]'. The resource has been blocked.

4

0 に答える 0