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#

Add ("Content-Security-Policy","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