Page MenuHomeDevCentral

Define Access-Control-Allow-Origin for CSS for assets.
ClosedPublic

Authored by dereckson on May 26 2023, 01:22.
Tags
None
Referenced Files
F3692302: D3136.diff
Fri, Oct 25, 17:30
Unknown Object (File)
Sun, Oct 20, 21:40
Unknown Object (File)
Sun, Oct 13, 17:04
Unknown Object (File)
Thu, Oct 10, 02:06
Unknown Object (File)
Mon, Sep 30, 09:08
Unknown Object (File)
Mon, Sep 30, 08:50
Unknown Object (File)
Sep 18 2024, 20:20
Unknown Object (File)
Sep 15 2024, 17:03
Subscribers
None

Details

Summary

To be sure the assets site serves the expected file, we can use the SRI,
Subresource Integrity mechanism to store a hash in the <link> tag.

If the URL does not support Cross-Origin Resource Sharing (CORS),
the SRI mechanism can't work. We so allow access from all origins.

Reference: https://www.w3.org/TR/SRI/

Ref T1881

Test Plan

Tested with D3119 to load D3135 CSS

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable