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
F6566779: D3136.id8000.diff
Tue, Apr 1, 07:55
Unknown Object (File)
Mon, Mar 31, 09:30
Unknown Object (File)
Sat, Mar 29, 12:09
Unknown Object (File)
Fri, Mar 28, 15:42
Unknown Object (File)
Wed, Mar 26, 17:50
Unknown Object (File)
Wed, Mar 26, 00:34
Unknown Object (File)
Mon, Mar 24, 21:19
Unknown Object (File)
Mon, Mar 24, 15:35
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