What to Check on a Client's Store Before You Hand It Over
Seven checks a developer or agency can run before handing a store to a client: headers, cookies, trackers before consent, TLS, old libraries and more.
Before you hand a store to a client, run seven checks from outside it: security headers, cookie flags, trackers that start before consent, encryption on every hostname, library and plugin versions, accessibility, and the scripts on the checkout. Each needs one command or a few minutes in browser dev tools. Write the results into the handoff note.
I am a certified security and PCI professional (CISSP · PCIP), in the field for more than 30 years. Most of what I find on a newly launched store was not built wrong. It was never looked at. The build was tested for whether the feature works, and none of these seven things stops a feature from working.
Short on time? Check my store reads one page from outside and grades checks 1 to 4 in about 20 seconds, with no account. The manual steps below show what it reads, and they cover the three checks it does not show in full.
In every command, replace store.example with the store's hostname.
1. Which security headers does the store send?
Six response headers tell a shopper's browser what the page is allowed to do: Content-Security-Policy, Strict-Transport-Security, X-Frame-Options, X-Content-Type-Options, Referrer-Policy and Permissions-Policy. One curl command shows which of them the page sends. A missing header does not mean the store was breached. It means the browser was never told to block framing, sniffing or mixed content on that page.
curl -s -D - -o /dev/null https://store.example \
| grep -iE '^(content-security-policy|strict-transport-security|x-frame-options|x-content-type-options|referrer-policy|permissions-policy):'
Run it on the home page, a product page and the cart. Headers are often set by a CDN rule or a server block that matches some paths and not others, so one clean page says little about the next.
On a hosted platform such as Shopify, the platform owns the server configuration and some of these headers are not yours to change. Record those as the platform's and move on. For what each header does, start with clickjacking and X-Frame-Options and what a storefront security grade measures.
2. Are the session cookies flagged correctly?
A cookie that holds a session or a login should carry three flags: Secure, HttpOnly and a SameSite value. HttpOnly matters most on a store, because it keeps every script on the page, including third-party ones, from reading the cookie. The same curl request shows the cookies set on first load.
curl -s -D - -o /dev/null https://store.example | grep -i '^set-cookie:'
That only shows first-load cookies. Add an item to the cart, log in with a test account, then read the full list in dev tools under Application, Cookies.
Session, login and cart-ID cookies get HttpOnly, no exceptions. A cart counter or a consent preference can go without it, because page scripts read those on purpose. If you cannot tell which kind a cookie is, treat it as a session cookie.
3. What runs before the visitor answers the cookie banner?
Open the store in a new private window with the Network tab open, load the page and touch nothing. Every request to an advertising or analytics domain in that list went out before consent. A banner on screen proves nothing, because it can appear while the tags behind it have already fired.
- Open a private window, open dev tools, go to the Network tab and tick Preserve log.
- Load the home page. Do not click the banner.
- Filter the list by vendor domain:
googletagmanager.com,google-analytics.com,facebook.com/tr,analytics.tiktok.com. - Under Application, Cookies, note any advertising or analytics cookies already set, such as
_ga,_fbpor_ttp. - Click Reject, reload, and compare the two lists.
Google Consent Mode needs a careful read here. In advanced mode it sends requests to Google before the visitor interacts with the banner, by design, and it only signals the visitor's choice to Google. It does not block any other vendor's tag; the consent tool has to do that.
This gap is ordinary. A peer-reviewed crawl of 97,000 websites popular in the EU found that 73.4% of the 48,843 sites showing a cookie notice set advertising or analytics cookies before the visitor interacted with it (Bouhoula et al., USENIX Security, August 2024). The study measured cookies stored, on EU-popular sites, against GDPR. It says nothing about US law or about any one store.
Consent tools often show different banners by region, so repeat the test from each region the client sells to. More on the mechanism: is your cookie banner blocking anything? and our tracking before consent guide.
4. Is the connection encrypted on every hostname the launch touched?
Check three things on each hostname: plain HTTP redirects to HTTPS, the certificate is valid and not close to expiry, and the server refuses TLS 1.0 and 1.1. A launch often adds a subdomain, and the new subdomain is where the certificate is missing or about to lapse.
List the hostnames first. If the staging site is on that list and still public, that is your first finding.
# Does plain HTTP redirect to HTTPS?
curl -sI http://store.example | head -n 5
# When does the certificate expire?
echo | openssl s_client -connect store.example:443 -servername store.example 2>/dev/null \
| openssl x509 -noout -dates
# Which protocol versions does the server accept?
nmap --script ssl-enum-ciphers -p 443 store.example
Run all three for the apex domain, www and every subdomain the project created. TLS 1.0 and 1.1 were formally deprecated in March 2021 (RFC 8996).
5. Does the store load software with known vulnerabilities?
List the JavaScript libraries the pages load and the plugins the platform runs, then compare the versions with public advisories. Retire.js does this for front-end libraries, WP-CLI lists WordPress plugins with an update waiting, and npm audit covers a headless build. This check goes stale fastest of the seven.
# Front-end libraries in a theme or build folder
npx retire --path ./path/to/theme
# WordPress or WooCommerce plugins with an update waiting
wp plugin list --update=available
# Headless or custom storefront, production dependencies only
npm audit --omit=dev # needs package-lock.json; with pnpm: pnpm audit --prod
For a quick look without the source, type jQuery.fn.jquery in the browser console on any page that loads jQuery.
A version that is clean on handoff day can appear in an advisory the week after, with no change to the store. So the handoff note needs a name beside this line: who applies updates once you are off the project?
6. Can a keyboard and a screen reader use the pages?
Start at the home page and reach the pay button using only Tab, Shift+Tab and Enter. You should always see where the focus is, reach every control and close every popup. Then run axe on the home page, a product page and the cart.
Accessibility fails the same way the other six checks fail: the build's tests never look at it, and the client gets the complaint.
npx @axe-core/cli https://store.example https://store.example/cart
If axe stops with a ChromeDriver version error, run npx browser-driver-manager install chrome once, then run axe again. Lighthouse in Chrome dev tools runs a similar automated pass. Both catch only some problems. A tool can tell that an image has no alt text. It cannot tell whether the alt text is useful.
7. Which scripts reach the cart and checkout?
Every script on the cart and checkout pages needs an owner and a reason. List the hostnames that serve them with one line in the browser console, then go through the list with the client. A script nobody can explain is the finding.
[...new Set(
[...document.scripts]
.map((s) => s.src)
.filter(Boolean)
.map((u) => new URL(u).hostname)
)].sort();
Run it after the page has settled, since a tag manager adds scripts late. Run it again on each step up to the point where the shopper pays.
A hosted payment field sits in the processor's iframe, and scripts on your page cannot read inside it. They can still change the page around it, which is how a fake payment form gets drawn over a real one.
On PCI: Requirements 6.4.3 and 11.6.1, which cover payment-page scripts, apply to merchants filing SAQ A-EP or SAQ D. The January 2025 revision removed them from SAQ A and replaced them with an eligibility criterion the merchant attests to (PCI SSC, SAQ A updates). Which form applies is the merchant's call, and SAQ A and SAQ A-EP differ on exactly this point. Either way, hand over the script list with a reason beside each entry. The longer method is in how to audit third-party scripts.
What goes in the handoff note?
One row per check: what you ran, what you found, and who owns it from here. The last column is the one that gets skipped, and it is the one the client needs.
| Check | Ran on | Result | Owner after handoff |
|---|---|---|---|
| 1. Security headers | Home, product, cart | Sent or missing, per header | Agency; on a hosted platform, the platform |
| 2. Cookie flags | First load, cart, login | Session cookies flagged or not | Agency |
| 3. Trackers before consent | Each sales region | Requests and cookies before the banner is answered | Whoever runs the tag manager |
| 4. Encryption | Every hostname | Redirect, certificate expiry date, TLS versions | Host |
| 5. Software versions | Theme, plugins, build | Versions with an advisory or an update waiting | Named person, with a schedule |
| 6. Accessibility | Home, product, cart | Automated findings, plus the keyboard pass | Agency for the build; client for new content |
| 7. Checkout scripts | Cart and each checkout step | Hostname list with a reason per entry | Client, with the agency |
Why is one check at handoff not enough?
Because you leave and the store does not stop changing. The week after handoff, the marketer pastes a TikTok pixel into the tag manager. Nothing breaks, so nobody tells you. A library version that was clean on handoff day can also land in an advisory. Agree at handoff who re-checks the store, and how often.
This is your client's store today. After handoff, app updates and theme edits change it, usually without anyone telling you.
Run a free check, verify your domain, and keep it running. Check my store grades security settings, trackers before consent and connection encryption on one page, and shows an accessibility grade. A free Store Health account adds the vulnerable software and checkout script areas once the domain is confirmed, re-reads the store every week, and compares it with new advisories every day.
If the client's team wants the owner's view of the same problem, send them what to ask an agency after each release.
Dennis Wu is a certified security and PCI professional (CISSP · PCIP) with more than 30 years in the field. He works with ecommerce merchants in the $1M–$50M range, and with the developers and agencies who build and maintain their stores. Questions about a handoff? Get in touch or see what a monitored plan covers.
Sources: Bouhoula, Kubicek, Zac, Cotrini and Basin, Automated Large-Scale Analysis of Cookie Notice Compliance, 33rd USENIX Security Symposium, August 2024 · Google, "Consent mode overview," Google tag platform documentation · IETF, RFC 8996, "Deprecating TLS 1.0 and TLS 1.1," March 2021 · PCI SSC, "Important Updates Announced for Merchants Validating to Self-Assessment Questionnaire A"
Next steps
Got a PCI notice or a failed scan?
Free PCI Notice Triage. Tell us what your processor sent, and we'll tell you what it requires.
Check a page of your store, free
The Security Settings Checker, the Website Tracking Checkerand the SAQ type selector.
Watch your store every week, free
Run the free check, confirm the store is yours, and Store Health keeps checking it every week.
Subscribe to the Newsletter
New guides on PCI, card skimming and privacy letters, by email when we publish them.
No spam, unsubscribe anytime. We handle your address as described in our privacy policy.
Related Articles
Your Agency Deployed on Friday. What Changed on Your Storefront?
An agency release can change your store's scripts, cookie banner and checkout by accident. What to ask your agency after each deploy, and what to check on Monday.
How to Audit Third-Party Scripts on Your Ecommerce Site
A step-by-step method for finding every third-party script running on your storefront, on any platform, using free browser tools or an outside scanner.
A New Script Appeared on Your Store. Would You Know?
Third-party scripts arrive on ecommerce stores through app updates, theme edits and agency deploys, with no alert. What drift is, how to detect website changes, and what matters.