Il y a des informations dans ce post qui pourraient vous aider : Mitigate XSS Attacks with Content Security Policy