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
Unknown Object (File)
Thu, Sep 10, 16:54
Unknown Object (File)
Wed, Sep 9, 19:19
Unknown Object (File)
Sat, Sep 5, 16:47
Unknown Object (File)
Sat, Sep 5, 15:17
Unknown Object (File)
Sat, Sep 5, 03:10
Unknown Object (File)
Fri, Sep 4, 09:23
Unknown Object (File)
Sat, Aug 29, 02:18
Unknown Object (File)
Thu, Aug 20, 09: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