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
F12214138: D3136.id8000.diff
Wed, Oct 8, 06:23
F12213507: D3136.diff
Wed, Oct 8, 05:32
F12212512: D3136.id.diff
Wed, Oct 8, 01:18
F12212383: D3136.diff
Wed, Oct 8, 00:23
F12211894: D3136.id.diff
Tue, Oct 7, 21:37
Unknown Object (File)
Tue, Oct 7, 00:21
Unknown Object (File)
Sun, Oct 5, 15:15
Unknown Object (File)
Sun, Oct 5, 02:51
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