http
HTTP/2 200 OK
Content-Type: text/html
Content-Security-Policy: style-src 'self' https://cdn.example.com https://fonts.googleapis.com
<!DOCTYPE html>
<html>
<head>
<!-- Erlaubt (self) -->
<link rel="stylesheet" href="/app.css">
<!-- Erlaubt (CDN whitelist) -->
<link rel="stylesheet" href="https://cdn.example.com/bootstrap.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto">
<!-- Blockiert (nicht in whitelist) -->
<link rel="stylesheet" href="https://malicious.com/steal-data.css">
<!-- Blockiert (unsafe-inline nicht gesetzt) -->
<style>body { background: red; }</style>
<div style="color: blue">Text</div>
</head>
</html>