mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02:00
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:
committed by
Alexander Kalenik
parent
1d57df6e26
commit
59162342e6
Notes:
github-actions[bot]
2025-08-07 17:29:14 +00:00
Author: https://github.com/Lubrsi Commit: https://github.com/LadybirdBrowser/ladybird/commit/59162342e64 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5726
@@ -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>
|
||||
Reference in New Issue
Block a user