Algum método aprovado para adicionar Javascript antes do fechamento do body?

You can whitelist evals in the content security policy site setting, see Mitigate XSS Attacks with Content Security Policy.

We do not recommend this though, it opens your site to security exploits.

1 curtida