Skip to content

Instantly share code, notes, and snippets.

@levonlee
Last active May 16, 2018 23:27
Show Gist options
  • Save levonlee/78fc9f24038cbd603014660419c1ad2d to your computer and use it in GitHub Desktop.
Save levonlee/78fc9f24038cbd603014660419c1ad2d to your computer and use it in GitHub Desktop.
Test HTTP Response Header Content-Security-Policy
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy" content="default-src https://cdn.example.net; child-src 'none'; object-src 'none'">
<meta http-equiv="X-Custom-CSP" content="default-src https://cdn.example.net; child-src 'none'; object-src 'none'">
<meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Title</title>
</head>
<body>
<p>Hello</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment