Na Neova Roda a partir do próprio rastreamento: nada a configurar.
Regra revisada pela última vez em 17 de outubro de 2026 · Guia atualizado em 7 de julho de 2026
A página HTML não tem uma Content-Security-Policy aplicada, então os navegadores não têm uma política que limite quais scripts e recursos ela pode carregar. Um cabeçalho Report-Only não aplica nada. Esta verificação procura uma política, não a robustez dela.
O que você pode fazer
Envie um cabeçalho de resposta Content-Security-Policy nas respostas HTML ou defina-o em uma tag meta http-equiv. Monte-o a partir das fontes que a página HTML realmente carrega.
Por que a Neova sinaliza isto
Sem uma Content-Security-Policy, o navegador não tem regra limitando quais scripts e recursos a página pode carregar, então um script injetado roda livremente.
Uma CSP é uma das principais defesas contra cross-site scripting (XSS); um cabeçalho Report-Only só informa e não bloqueia nada.
Isto é uma convenção de segurança, não uma regra de buscador; o Lighthouse audita a CSP nas Boas práticas.
TL;DR: A Content-Security-Policy header restricts which origins can load scripts, styles, and other resources on your page. It's a security hardening measure, not a ranking factor — but a hacked site tanks rankings fast, so treat CSP as cheap insurance. Test in report-only mode, then enforce.
What a Missing Content-Security-Policy Header Means
A Content-Security-Policy (CSP) response header tells the browser which origins are allowed to load scripts, styles, images, and frames on your page, so if it's missing the browser trusts everything and a single injected <script> can run unchecked. This is a defense-in-depth measure against cross-site scripting and content injection — it is not a direct Google ranking factor, and no page has ever ranked lower for lacking one.
So why does an SEO crawler flag it? Because a compromised page is an SEO problem by proxy. Injected spam, a hacked-site warning in Search Console, or a browser interstitial will bury your rankings faster than any header ever could. CSP is the seatbelt: invisible until the day it saves you.
A Real Example and the Fix
Run a header check against a page with no policy and you get nothing back — here's a live response from a site that shipped without one:
$ curl -sI -A 'Mozilla/5.0' https://example.com/ | grep -i content-security
# (no output — header absent)
The fix is to send a policy that names your legitimate sources. A pragmatic starting policy for a typical WordPress site with a couple of third-party scripts looks like this — note it mirrors the shape of what large sites actually ship (GitHub and Cloudflare both send default-src plus explicit allow-lists):
A security plugin such as one that manages HTTP headers can do the same through a UI if you'd rather not edit code. Either way the header ends up on the response — the browser doesn't care how it got there.
Report-Only First (Do This Before Enforcing)
Swap the header name for Content-Security-Policy-Report-Only. The browser logs every violation to the console but blocks nothing, so you can watch your real traffic surface the origins you forgot — a font CDN, an embedded map, a chat widget — then add them and only then switch to the enforcing header. Enforce a policy you haven't watched in report-only mode and you will white-screen your own site. Ask me how I know.
Common Mistakes
A handful of errors account for most broken CSP rollouts:
Forgetting your own subdomains. If your CDN or asset host is cdn.yourdomain.com, 'self' won't cover it — name it explicitly.
Blocking inline styles the theme needs. Many themes inject inline CSS; omit 'unsafe-inline' from style-src and your layout collapses.
Setting the header twice. A plugin and the server both sending CSP produces two headers, and browsers enforce the intersection — the strictest combination, which usually breaks something.
Copying a huge policy off another site. GitHub's or Cloudflare's policy fits their assets, not yours. Start minimal and widen from report-only data.
FAQ
Will Adding a CSP Improve My Google Rankings?
No, not directly. Google has never listed CSP as a ranking signal. The SEO payoff is indirect: it hardens the site against the kind of hack that does tank rankings via manual actions and malware warnings.
What's the Difference Between CSP and HSTS?
CSP controls what content is allowed to load; HSTS forces the connection itself to stay on HTTPS. They solve different problems and you want both.
Will a CSP Break My Existing Scripts?
It can, which is exactly why you run Content-Security-Policy-Report-Only first. Anything not on your allow-list gets logged, you add it, and you flip to enforcing once the console is quiet.
Is 'unsafe-inline' Bad?
It weakens the policy because it re-allows inline scripts, which is what most XSS abuses. It's a common concession for WordPress themes that inline JS. Tightening to nonces or hashes is the mature next step, but a policy with 'unsafe-inline' still beats no policy.
Do I Need a CSP If I Already Run HTTPS Everywhere?
Yes. HTTPS encrypts the transport; it does nothing to stop a malicious script that's legitimately served over that encrypted connection. See our mixed content guide and the security issues glossary for how these layers stack.
Encontre isso no seu próprio site
O Neova roda esta verificação e todas as outras em cada rastreamento e depois escreve a correção como um ticket para a sua equipe.
App para desktop no Mac, Windows e Linux
Todas as 696 verificações, cada uma com sua fonte
Search Console e Analytics 4, conectados só para leitura
Tickets para Jira, Linear e Asana
Baixar a NeovaPlano Desktop Free, ou Solo grátis por 14 dias, sem cartão.