Skip to content

Commit

Permalink
feat: add support for script integrity and cross-origin attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
d9pouces committed Dec 29, 2023
1 parent 086be77 commit 463a415
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,25 @@ Indicate if you want this group to appear in your cache manifest.

Defaults to ``True``.

``crossorigin``
............

**Optional**

Indicate if you want to add to the group this attribute that provides support for CORS, defining how the element handles cross-origin requests, thereby enabling the configuration of the CORS requests for the element's fetched data. .

Missing by default (the attribute is not added), the only valid values currently are ``anonymous`` and ``use-credentials``.

``integrity``
............

**Optional**

Indicate if you want to add the sub-resource integrity (SRI) attribute to the group.
This attribute contains inline metadata that a user agent can use to verify that a fetched resource has been delivered free of unexpected manipulation

Missing by default, and only valid values are ``"sha256"``, ``"sha384"`` and ``"sha512"``.

``compiler_options``
....................

Expand Down

0 comments on commit 463a415

Please sign in to comment.