Skip to content

Integrity-Policy header for scripts #458

Closed

Description

@yoavweiss

WebKittens

@annevk

Title of the proposal

Integrity-Policy header for scripts

URL to the spec

w3c/webappsec-subresource-integrity#133

URL to the spec's repository

No response

Issue Tracker URL

No response

Explainer URL

No response

TAG Design Review URL

w3ctag/design-reviews#1048

Mozilla standards-positions issue URL

No response

WebKit Bugzilla URL

No response

Radar URL

No response

Description

Subresource-Integrity (SRI) enables developers to make sure the assets they intend to load are indeed the assets they are loading. But there's no current way for developers to be sure that all of their scripts are validated using SRI.

The Integrity-Policy header gives developers the ability to assert that every resource of a given type needs to be integrity-checked. If a resource of that type is attempted to be loaded without integrity metadata, that attempt will fail and trigger a violation report.

Activity

  1. annevk commented on Apr 8, 2025

    @annevk
    Contributor

    Overall this seems like a reasonable problem to solve, but given the proposal is still evolving we haven't yet established a position. cc @sysrqb

  2. added
    venue: W3C Web Application Security WG
    from: other
    on Apr 8, 2025
  3. changed the title [-]require-sri-for CSP directive[/-] [+]`Integrity-Policy` header for scripts[/+] on Apr 23, 2025
  4. yoavweiss commented on Apr 23, 2025

    @yoavweiss
    Author

    Updated the title and description to reflect the latest thinking.

  5. yoavweiss commented on Apr 30, 2025

    @yoavweiss
    Author

    @annevk - The latest design is in w3c/webappsec-subresource-integrity#133 (and can probably benefit from your review :) )

  6. annevk commented on May 14, 2025

    @annevk
    Contributor

    The proposal seems reasonably mature now and agreeable, although the larger issue of the total number of policies to configure remains a concern. As such I suggest we mark this as "position: support" one week from now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    from: otherposition: supporttopic: securityvenue: W3C Web Application Security WG

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions