SSL Certificates, HTTP Security Headers, and Mixed Content: What Actually Matters on Hosted vs. Self-Hosted Sites
Most small business owners assume that once the browser shows https://, transport security is finished. In practice, three different issues break trust or trigger browser warnings even on sites that already have an SSL c
Most small business owners assume that once the browser shows https://, transport security is finished. In practice, three different issues break trust or trigger browser warnings even on sites that already have an SSL certificate:
- Silent certificate renewal failures (especially on custom DNS records, proxied subdomains, or forgotten Let's Encrypt cron jobs).
-
Mixed-content
http://subresources hardcoded inside HTML templates, image tags, or legacy embeds, which cause browsers to block assets or warn visitors. -
Missing HTTP security headers that leave pages exposed to clickjacking (
X-Frame-Options/frame-ancestors), MIME sniffing (X-Content-Type-Options), and protocol downgrade attacks (Strict-Transport-Security).
Just as important: generic security scanners often hand Shopify, Squarespace, Wix, and Webflow owners raw .htaccess or Nginx blocks that are impossible to install on a hosted platform.
1. Live TLS handshake vs. Certificate Transparency expiry
Checking a domain over HTTPS confirms two separate things:
-
Live handshake: Does
https://yourdomain.com/respond cleanly over TLS without a certificate mismatch or redirect loop? -
Certificate validity window: Who issued the active leaf certificate (Let's Encrypt, Google Trust Services, DigiCert, Cloudflare), which SAN hostnames does it cover (
example.comandwww.example.com), and how many days remain before expiration?
Monitoring Certificate Transparency logs (such as crt.sh) alongside live HTTPS headers catches short-lived certificates that stopped auto-renewing before they expire at 2:00 AM on a weekend.
2. The 6 HTTP security headers worth checking
| Header | What it protects against | Practical baseline |
|---|---|---|
Strict-Transport-Security |
Protocol downgrades and cookie hijacking on repeat visits |
max-age=31536000; includeSubDomains (enable preload only after verifying every subdomain supports HTTPS) |
Content-Security-Policy |
Cross-site scripting (XSS) and unauthorized third-party script execution | Start with frame-ancestors 'self' and upgrade-insecure-requests, then tighten script sources without breaking analytics or checkout widgets |
X-Frame-Options |
Legacy clickjacking protection when a page should not be embedded in third-party iframes |
SAMEORIGIN or DENY
|
X-Content-Type-Options |
Browser MIME-type sniffing of uploaded or misconfigured files | nosniff |
Referrer-Policy |
Leaking sensitive URL query parameters to third-party domains | strict-origin-when-cross-origin |
Permissions-Policy |
Blocking unauthorized access to camera, microphone, or geolocation APIs | Disable features your site does not use, such as camera=(), microphone=(), geolocation=()
|
3. Mixed content is the #1 fixable issue across every CMS
Even with a valid TLS certificate and strong headers, a single <img src="http://...">, <script src="http://...">, or <iframe src="http://..."> inside your HTML breaks secure page rendering. Modern browsers auto-upgrade some passive images but hard-block active http:// scripts and stylesheets, silently breaking page layout or forms.
The fix works on every platform, hosted or self-hosted: inspect your live HTML for literal http:// asset URLs, replace them with https://, and update any hardcoded links inside theme settings, widgets, or page builders.
4. Hosted vs. self-hosted: do not copy .htaccess onto Shopify or Squarespace
Before applying any security-header recommendation, check your hosting architecture:
-
Hosted platforms (Shopify, Squarespace, Wix, Webflow, GoDaddy Website Builder, Carrd, Framer): Your platform manages TLS certificates, edge routing, and core HTTP headers automatically. You do not have root server access,
.htaccess, or Nginx configs. Focus on what you control: enable automatic HTTPS/HSTS in the platform dashboard, fix anyhttp://mixed-content links inside your pages/theme, and remove unused third-party embeds. -
Self-hosted stacks (WordPress on VPS/cPanel, Cloudflare Pages/Workers, Vercel, Netlify, Nginx, Apache): Set
Strict-Transport-Security,X-Content-Type-Options: nosniff,X-Frame-Options: SAMEORIGIN,Referrer-Policy, and a testedContent-Security-Policyat the CDN edge (Cloudflare Transform Rules /_headers) or web server config, then verify live headers withcurl -I.
Check your domain live in 5 seconds
We built a free, zero-signup SSL Certificate & HTTP Security Headers Checker that tests your live HTTPS handshake, pulls Certificate Transparency expiry metadata, grades all 6 OWASP security headers, flags mixed-content http:// HTML assets, and tailors remediation advice to your detected CMS.
Once your transport and headers look clean, you can jump straight into a full live speed, technical SEO, schema, and WCAG diagnostic at SiteRedraft.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.