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 auditOther security & https checks
- Any website can display this site inside a frame
- Browsers are not told to always use HTTPS
- Forms on secure pages send their contents over plain HTTP
- Pages served over HTTP
- Secure pages loading scripts or styles over plain HTTP
- The HTTPS certificate expires soon
- The HTTPS certificate has expired or does not validate
- The nosniff security header is not sent
- The referrer policy sends full addresses to other sites