Skip to content

SRI examples are incomplete #43302

@codingjoe

Description

@codingjoe

MDN URL

https://developer.mozilla.org/en-US/docs/Web/Security/Defenses/Subresource_Integrity

What specific section or headline is this issue about?

Using Subresource Integrity

What information was incorrect, unhelpful, or incomplete?

The standard describes multiple integrity values, but the current node doesn't mention which delimiter is used.

What did you expect to see?

It's a space; see also https://www.w3.org/TR/sri/#agility

I'd love to have all examples include multiple hashes. According to the standard, the browser should choose a hash or hash-function. Therefore, a server should probably offer ALL digest functions.

Furthermore, you'd love to add an example of the same digest function being used twice. Since you can add the same twice, in case you respond differently depending on request headers.

Do you have any supporting links, references, or citations?

https://www.w3.org/TR/sri/#agility

Do you have anything more you want to share?

Affected pages:

https://developer.mozilla.org/en-US/docs/Web/Security/Defenses/Subresource_Integrity
https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/integrity

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:SecuritySecurity docsContent:WebAPIWeb API docsneeds triageTriage needed by staff and/or partners. Automatically applied when an issue is opened.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions