Imagine booking a table on a restaurant website. You open the page, choose a time, sign in and confirm through an embedded payment service. This hypothetical visit moves through several connected systems while remaining one simple experience for you.
TLS and security headers help those systems cooperate. TLS establishes the connection and server identity; response headers give the browser instructions about content, cookies and future visits.
Scope of this guide
This guide explains the concepts. The free Launch Readiness Snapshot is not a pentest: it records the protocol of one TLS handshake, not every supported version, checks headers mostly for presence, skips cookie SameSite and tests the HTTP-to-HTTPS redirect only when you enter an http:// address.
1. Understand the certificate’s role in a visit
When a browser connects over HTTPS, TLS establishes encrypted communication. The browser checks the certificate against the requested hostname and trusted issuers. The certificate identifies the names it covers, its validity period and the information needed to build a trusted chain.
Make a list of public names such as the root domain, “www” and service subdomains. Check each intended name and note which provider manages its certificate. A CDN and the origin server may have separate certificates with separate renewal arrangements. The OWASP TLS guidance helps teams choose supported protocols and maintain their configuration. Recording the negotiated protocol during a connection gives that review a concrete observation. Plan for shorter lifetimes as well: publicly trusted TLS certificates issued since March 15, 2026 are valid for at most 200 days, falling to 100 days from March 15, 2027 and 47 days from March 15, 2029, so renewal has to be automated and monitored.
2. See how the layers complement each other
| Layer | Benefit | Useful practice |
|---|---|---|
| TLS certificate | An authenticated, encrypted connection | Track public names, validity and renewal ownership |
| Content Security Policy | Explicit rules for page resources and behavior | Build the policy around the resources the site uses |
| HSTS | Consistent HTTPS use on future visits | Choose duration and domain coverage deliberately |
| Cookie attributes | A session suited to the account journey | Test sign-in, embedded services and external returns |
Think of these controls as complementary instructions. The certificate supports the connection, while the headers describe how a particular response should behave. Different pages can have different purposes: a public article, account page and intentionally embedded widget each benefit from a policy that reflects their role.
3. Build CSP from the resources people use
Content Security Policy describes allowed resource sources and browser behaviors. Begin with an inventory of scripts, images, fonts, network connections and frames. Walk through the whole journey so the list includes payment, authentication and support resources that appear after an interaction.
Use Report-Only mode to observe how a proposed policy matches actual use. Report-Only works only as an HTTP response header, not in a <meta> tag. Review the browser console or configured reporting destination, associate each message with its resource and decide the intended rule. After representative journeys are reviewed, apply the tested policy. Nonces or hashes provide a way to authorize specific scripts. A documented resource inventory makes future additions easier to evaluate and gives the team a clear explanation for each permission.
4. Make HTTPS a consistent habit for the browser
HSTS tells a browser to use HTTPS for a host for a chosen period. The browser learns the policy from a valid HTTPS response and applies it on later visits. Select an initial duration your team can comfortably review, confirm the behavior and extend it according to your operating plan.
The includeSubDomains option extends the policy to subdomains, so connect that choice to your domain inventory and HTTPS setup. Preloading adds the domain to a list built into browsers, so HTTPS applies from the very first visit. The preload list submission site now recommends HSTS but not preloading for most sites, because Chrome and Safari already upgrade HTTP navigations to HTTPS, and removing a domain from the list takes months. If you still choose to preload, treat it as a long-term commitment that covers every subdomain. The MDN HSTS explanation describes how these options work together.
6. Observe the finished experience
Open a normal page request in browser developer tools and follow its redirects to the final response. Inspect the certificate, headers and cookies actually delivered. This connects the configuration to the visitor’s experience and shows which service contributes each setting. For a header-by-header lookup with DevTools or curl and safe starting values, see the security headers check.
- Visit the supported public hostnames over HTTPS.
- Record certificate details and the final response policy.
- Complete sign-in, account recovery, an embedded payment and any return from an external service.
- Review console observations and the chosen reporting destination.
Keep a dated configuration record and note who manages each layer. When hosting or an integration changes, use the same journey to verify the intended behavior. Roll out changes in stages and keep the previous configuration ready to restore. The resulting checklist also gives future maintainers a practical introduction to the website.
To check the headers of one site now, use the free security headers checker.
7. Keep the protection map close to the website
Record public names, certificate owners, browser resources and important journeys in one place. Sitelemetry can help organize observable TLS and response-header checks for that review.
The free Launch Readiness Snapshot runs eight passive checks on one public origin without signup, including the TLS certificate and the security headers the home page returns. It makes one TLS handshake and checks that the chain is trusted, that the certificate does not expire within 30 days and that the negotiated protocol is TLS 1.2 or 1.3; it does not list every supported TLS version or cipher suite. For headers, it mostly checks whether each one is present. The result is one score with a separate hardening grade and up to three signals to look at first, not a header-by-header report. It is not a pentest.
The website security audit guide explains how these layers connect to accounts, permissions and everyday maintenance.
Common questions
How do TLS and headers work together?
TLS establishes encrypted communication and verifies server identity. Headers then describe how the browser should handle the received content, session and future requests.
What is a practical way to introduce CSP?
Inventory the resources used during representative journeys, observe the proposed policy in Report-Only mode, review the messages and apply the rules that match the intended behavior.
Does HttpOnly fully protect a cookie?
No. HttpOnly only stops JavaScript on the page from reading the cookie, for example through document.cookie. The browser still sends it with matching requests, and HttpOnly does not prevent XSS itself. Secure keeps the cookie on HTTPS connections, and SameSite controls whether it is sent with cross-site requests.
Should I enable HSTS preloading?
For most sites, no. The preload list submission site recommends HSTS but no longer recommends preloading, because Chrome and Safari already upgrade HTTP navigations to HTTPS and removing a domain from the list takes months. If you still choose it, first make sure every subdomain will work over HTTPS for the long term.
What should a certificate register include?
List public hostnames, certificate provider, validity period, renewal owner and relevant CDN or origin arrangements. Review the register during hosting and domain changes.
Sources & further reading
- MDN: Content Security Policy reporting modedeveloper.mozilla.org
- MDN: HTTP Strict Transport Securitydeveloper.mozilla.org
- OWASP HTTP headers guidancecheatsheetseries.owasp.org
- OWASP Transport Layer Security guidancecheatsheetseries.owasp.org
- MDN: Set-Cookie headerdeveloper.mozilla.org
- MDN: X-Content-Type-Optionsdeveloper.mozilla.org
- MDN: CSP frame-ancestorsdeveloper.mozilla.org
- HSTS Preload List Submissionhstspreload.org
- CA/Browser Forum: TLS Baseline Requirements (certificate validity)raw.githubusercontent.com
Prepared by the Sitelemetry editorial team. Explore the linked sources for further detail.



