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
F22404369: D3136.id8000.diff
Wed, Jan 28, 10:45
F22320196: D3136.id.diff
Tue, Jan 27, 22:09
Unknown Object (File)
Tue, Jan 27, 08:24
Unknown Object (File)
Mon, Jan 26, 01:49
Unknown Object (File)
Thu, Jan 22, 19:18
Unknown Object (File)
Thu, Jan 22, 14:17
Unknown Object (File)
Thu, Jan 22, 11:26
Unknown Object (File)
Thu, Jan 22, 04:28
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