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
F18938450: D3136.id.diff
Mon, Dec 22, 08:34
F18918256: D3136.id7999.diff
Mon, Dec 22, 04:02
F18885120: D3136.id7999.diff
Sun, Dec 21, 21:02
Unknown Object (File)
Sun, Dec 21, 02:29
Unknown Object (File)
Thu, Dec 18, 15:18
Unknown Object (File)
Thu, Dec 18, 13:03
Unknown Object (File)
Wed, Dec 17, 17:58
Unknown Object (File)
Mon, Dec 15, 14:39
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