Documentation

PHP

$header = "Content-Security-Policy:default-src 'self';";

header($header);

WordPress

add_action( 'send_headers', 'my_headers' );

function my_headers() { header("Content-Security-Policy:default-src 'self';"); }

C#

public void Add (string "Content-Security-Policy",string "default-src 'self'");

HTML

<meta http-equiv='"Content-Security-Policy" content="default-src 'self';">





Oops

Your browser is not supported

A modern browser with Javascript ES6 is required

Any major browser from 2015 onwards will be suitable