Há algumas informações neste post que podem ajudar: Mitigate XSS Attacks with Content Security Policy