Security & HTTPS

No Content-Security-Policy on the start page

One of the 156 checks Lala SEO runs on every page of a site in a free audit.

How serious
Worth knowing. Small, or only matters in some cases. Read it and decide.
Score
Reported, but it does not lower your site's score.
Based on
Industry standard: Google does not document this one, so the check follows established practice.

What is wrong

A Content-Security-Policy (CSP) is a security rule that you set in your website's code. It tells browsers which sources of content—like scripts, images, or stylesheets—are safe to load on your pages. Without one, a browser will accept content from anywhere, which leaves your site vulnerable to attackers injecting malicious code.

Why it costs you

If an attacker injects malicious JavaScript into your pages, they can steal visitor data, redirect people to other sites, or deface your content. Your visitors' passwords, payment information, or login sessions could be at risk. This damages trust in your brand and can expose you to liability.

How to fix it

To fix this, add a Content-Security-Policy HTTP header to your web server configuration. Start with a basic policy that restricts scripts to your own domain—for example, `Content-Security-Policy: script-src 'self'`. This setting should be applied at the server level (in Apache, Nginx, or your hosting control panel) so it protects every page automatically. Once it is live, test it using your browser's developer console to ensure legitimate content still loads correctly, then refine the policy as needed.

What the audit tests

  • The start page sets a Content-Security-Policy, in the response header or a <meta> tag

Check your site

Run a free audit of up to 300 pages. No card needed.

Start a free audit

Other security & https checks

All SEO checks