mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Added a note that SRI can be considered for some dynamic services
This commit is contained in:
@@ -28,11 +28,21 @@
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Subresource integrity checking is commonly recommended when importing a fixed version of
|
||||
Subresource integrity (SRI) checking is commonly recommended when importing a fixed version of
|
||||
a library - for example, from a CDN (content-delivery network). Then, the fixed digest
|
||||
of that version of the library can easily be added to the <code>script</code> element's
|
||||
<code>integrity</code> attribute.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
A dynamic service cannot be easily used with SRI. Nevertheless,
|
||||
it is possible to list multiple acceptable SHA hashes in the <code>integrity</code> attribute,
|
||||
such as those for the content generated for major browers used by your users.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
See the `CUSTOMIZING.md` file in the source code for this query for information on how to extend the list of hostnames required to use SRI by this query.
|
||||
</p>
|
||||
</overview>
|
||||
|
||||
<recommendation>
|
||||
|
||||
Reference in New Issue
Block a user