I don't know where to apply the Content Security Policy (CSP) snippet below in my code;
Content-Security-Policy: script-src 'self' https://apis.google.com
Should it be in the HTML?
Will it be best implemented in JavaScript as in the code snippet below?
var policy = "default-src 'self'";
http.createServer(function (req, res) {
res.writeHead(200, {
'Content-Security-Policy': policy
});
});