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
F24898631: D3136.diff
Mon, Mar 16, 19:44
F24890785: D3136.id8000.diff
Mon, Mar 16, 07:24
F24890784: D3136.id7999.diff
Mon, Mar 16, 07:24
F24889851: D3136.diff
Mon, Mar 16, 05:34
F24887198: D3136.id8000.diff
Mon, Mar 16, 00:25
Unknown Object (File)
Sun, Mar 15, 13:03
Unknown Object (File)
Thu, Mar 12, 11:51
Unknown Object (File)
Thu, Mar 12, 09:45
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