Skip to content

SSL cert valid but Chrome says 'not secure'

Web Hosting by MARIA3 11 replies 2K views
8 #11
MARIA3 said:
I change all to https:// and now Chrome show secure lock.

Good. Now go one further and set a CSP header so the next time some plugin or editor inserts a http:// link, your browser blocks it at source instead of showing "not secure" to visitors.

Content-Security-Policy: upgrade-insecure-requests;

Or if you want reports:
Content-Security-Policy-Report-Only: default-src https:;

Takes five minutes in nginx, saves hours later.

two disks down, still serving
#12
rolfllc said:
Takes five minutes in nginx

Unless you're behind Cloudflare and their edge overrides your CSP with their own, then you chase it for an hour before checking the transform rules. Ask me how I know.

Maria3 if you're using Cloudflare, set it there instead, not in nginx.

Post a reply

You need an account to reply. Log in or register to join the conversation.

Post reply Preview Save draft