ladybird/Tests/LibWeb/Text/input/ContentSecurityPolicy/link-element-nonce.html
Luke Wilde 59162342e6 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.
2025-08-07 19:26:57 +02:00

11 lines
351 B
HTML

<!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>