LibWeb: Set LinkProcessingOptions' cryptographic_nonce_metadata

Fixes external CSS being blocked on https://beatsaver.com/, where they
have a `style-src` directive set to `'self' 'nonce-[value]'`

Relates to #5643, but does not make the website load.
This commit is contained in:
Luke Wilde
2025-08-05 19:01:27 +01:00
committed by Alexander Kalenik
parent 1d57df6e26
commit 59162342e6
Notes: github-actions[bot] 2025-08-07 17:29:14 +00:00
3 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Security-Policy" content="style-src 'nonce-value';">
<link rel="stylesheet" href="../body-background-color-red.css" nonce="value">
</head>
<script src="../include.js"></script>
<script>
test(() => {
println(window.getComputedStyle(document.body).backgroundColor);
});
</script>