Pass the menu and read the page

SignupFolio

CSP browser version minimums: 3 checks before rollout

CSP support minimums are Firefox 23, Chrome 25, and Opera 19; compare these versions with your signup traffic before rollout.

Key takeaways

  • Compare browser major versions with the minimums below.
  • Keep unreadable browser versions in an unknown group.
  • Give engineering your signup page's tag inventory.
  • Agree on who reviews reports before rollout.

If you have never read a security header, you are not alone. Most growth leads meet CSP when an engineer or a security review brings it up. You do not need to write the policy to take part. You need to know which visitors' browsers can use it, how that answer changes your plan, and what to ask for.

In MDN's words, Content Security Policy (CSP) is a feature that helps to prevent or minimize the risk of certain types of security threats. It is mainly used as a defense against cross-site scripting (XSS) attacks, in which an attacker is able to inject malicious code into the victim's site.

For a landing page, the practical effect is simple. The policy tells the visitor's browser which sources of scripts, styles, and other content the page may use; when the policy is enforced, the browser blocks sources it does not allow. The catch is that the browser has to understand the policy at all. A browser that does not support CSP cannot hold the page to it, so the protection you get depends on which browsers your visitors actually use. That is where the version numbers come in.

The first three sections explain the rules and the three minimums. The worked example shows how to test them against your traffic, and the last sections cover the work you share with engineering.

What CSP is and who defines it

The rules come from the W3C. The Content Security Policy Level 2 document defines "a policy language used to declare a set of content restrictions for a web resource, and a mechanism for transmitting the policy from a server to a client where the policy is enforced." Your engineers handle the server side of that exchange. Your job is the browser side: which visitors' browsers will enforce it.

Two facts about the document matter for planning. It is governed by the 1 September 2015 W3C Process Document, and the Working Group expects CSP Level 3 to obsolete this Recommendation, so the version you read today will not stay current. The latest CSP editors' draft shows proposed corrections in place, so when a published detail looks wrong, that draft is where the proposed change appears.

Landing pages rarely load only code your own team wrote. Analytics tags, chat widgets, ad pixels, and testing tools often load scripts from other domains. A policy has to allow those sources, or the browser may refuse them. Review landing page tracking consent alongside your tag inventory.

This post stays at the planning level rather than explaining how to write a policy. That is the right altitude for growth work, but it means engineering will fill in the details.

Firefox 23, Chrome 25, and Opera 19

The OWASP Content Security Policy cheat sheet lists CSP support at the minimums in the table below.

Browser makers also release on their own schedules, so a version number in one product does not line up with the same number in another. Firefox 23 and Chrome 25 are separate release lines, and treating them as one scale would mislead your plan.

Treat each minimum as a floor rather than a target: a visitor at or above it is in the group that can enforce the policy, and a visitor below it is not. Plan around your real traffic, which may sit well above the floor or well below it.

Reports go to the URL designated by the report-uri directive, or by the newer report-to directive. Your reporting address is how you find out about reported policy problems. Because a bad rule can still break scripts on a live signup form, have a security professional review the policy before launch, especially if the page collects personal data.

What the minimums do not tell you

Check Safari and Edge separately before classifying those visits. Your own logs will show whether Safari or Edge matter to your audience, and they may matter a great deal. The table below collects the browser minimums for your brief.

BrowserMinimum version
Firefox23+
Chrome25+
Opera19+

For growth work, a minimum is a line between visitors the policy can protect and visitors it cannot. If most of your signups come from current browsers, that line barely touches your numbers. If a meaningful slice comes from older versions, that slice needs its own answer. Ask for that split early, because it changes the scope of the project.

The figures tell you where the line sits, not how many of your visitors sit on each side of it. Those counts come from your own logs, which is why the worked example below starts with one visit.

Check one visitor's browser

Start with a single visit so the method is clear. Your server or CDN logs record a user agent string with each request.

Chrome/<major>.<minor>.<build>.<patch>

Follow these steps:

  1. Find the Chrome version in the string. Ignore the Safari part, since many strings name both.
  2. Read the version number that follows "Chrome/".
  3. Take the first number before the first full stop as the major version.
  4. Compare the major version with the Chrome minimum in the table above.
  5. If the major version is 25 or higher, mark the visit as supported; if it is lower, mark it as below the minimum. Then move to the next one.

If a string has no readable version, mark the visit as unknown rather than supported.

Repeat the same steps for Chrome visits, and read Firefox and Opera versions with their own floors: Firefox 23 and Opera 19. The output you want is a short table for each browser: how many visits are at or above its minimum and how many fall below it. If counting by hand is too slow, ask engineering for a log export.

Step 4 is a comparison, not a judgment. The minimum decides which group a visit belongs to. It does not tell you whether that visit matters to revenue, and that question stays with your funnel data.

Run the same method on the visits from one campaign, then again on visits from the weeks before it. If the group shares look different, the campaign may be pulling a different audience, and that matters before you read any conversion numbers.

The worked case stops at one visit on purpose. A single string tells you about one visitor, not about your audience. Your sample should cover the same weeks as your campaign, and it should be large enough that a small browser group does not look like a trend.

Illustrative example: classify a small sample

Keep the unknown visits separate when you brief engineering; they have not passed the version check.

When a group falls below its minimum

A group below its minimum needs a decision, not a shrug. Ask engineering what the page would look like for those visitors, whether a simpler version without extra tags is possible, and whether marketing can accept a lower level of protection for that slice. Those answers belong in the plan before the launch date, not after the first complaint.

Where marketing and engineering split the work

Engineering owns the policy itself: the header, the rules, and the reporting endpoint. Marketing owns the inventory of what the page loads and the list of browsers your audience actually uses. Each side needs the other's facts. A policy written without the tag inventory may block tags marketing depends on, and browser data without a policy plan does not tell engineering what to build.

Marketing's most useful input is specific. A list of tags with owners and dates helps engineering far more than a general request to protect the page. Use the signup widget checklist when reviewing widgets in that inventory.

When you brief engineering, lead with the question you need answered rather than a request to add the policy. For example: which browsers our signups use fall below the minimums? That gives them a scoped task and keeps design debates out of the first meeting. If a tag breaks, someone in marketing should know whom to call, and engineering should know which tag matters most to revenue. Keep the split clear from the first meeting, because who does what tends to slow a project more than the code does.

When you present this to leadership, describe the policy as a defense against one class of attack, cross-site scripting, and keep the promise small. A small promise is easier to keep, and it matches what the policy is built to do.

Timing the rollout around campaigns

Timing matters as much as the browser list. A signup page that changes during a paid campaign makes it hard to tell whether a drop in conversions came from the policy or from the ads. Plan the rollout for a quiet period, and tell the people running campaigns the exact date the change will go live. Give the change one owner for the rollout window, so that one person can pause it without a meeting. If a campaign launches during that window, ask engineering to pause until it ends, even if the first test results look clean.

Keep a short list of the tags that drive your campaigns, so anyone watching the dashboards knows which numbers to check first. Finally, decide before launch what counts as a problem: a drop in signups, a spike in script errors, or a rise in reports. Agree on those thresholds with engineering before anyone sees the first graph, so nobody argues about them after launch.

A good launch is uneventful. The signup form works, the campaign numbers move the way they did the week before, and the reports arrive at a level someone can explain. If something surprises the team, they know who looks at it and what they do first.

Today, ask engineering for a recent signup-page log sample with browser major versions, and agree on its date range before classifying visits.

Questions to ask engineering

Bring these questions to the first meeting:

  • Who will own the policy after launch, and who approves a change to it? Name a policy owner and a change approver in the rollout plan.
  • How will a broken tag show up in our dashboards, and who will see it first? Agree on the dashboard and the person who watches it.
  • What does a refused script look like to a visitor on the signup page? Ask engineering to demonstrate the affected signup flow.
  • What is the fallback if the reporting address stops receiving reports? Put a reporting fallback in the plan before launch.
  • Which groups from the sample will engineering test first, and why? Ask engineering to name the browser groups and explain the testing order.

Push back on any answer that is only a promise. A plan that names an owner, a dashboard, and a fallback is more useful than one that says the team will watch closely.

Common mistakes to avoid

Testing only on team laptops is a common mistake. Staff devices often run current browsers, so a clean test there shows the policy works on new software and says little about the rest of your audience.

Adding tags after launch is another. A new chat widget or ad pixel can conflict with the policy the day it goes live. Ask marketing to tell engineering before any new tag reaches the signup page.

Reusing old traffic data is a third. Browser shares shift over time, so a sample from last year may describe an audience you no longer have.

Copying a policy from another site is a fourth. A policy that works on a blog may not fit a signup form that loads different tags, so start from your own inventory.

Treating a passing test as proof of safety is a fifth. CSP is one layer of defense rather than a guarantee.

Measuring only conversions is the last one. Conversion alone hides the difference between a refused script and a slow page, so ask for error and report counts alongside signups.

Rollout actions

Use this list when you brief engineering:

  • Pull a recent sample of signup-page visits and group it by browser and major version.
  • Flag every group below its minimum in the table above.
  • Find the minimums for Safari and Edge in a current compatibility table, and add those groups to the sample.
  • Build a complete inventory of every script and widget the signup page loads.
  • Name one person in marketing who signs off on the tag list.
  • Agree with engineering on the sample size and date range before the first query runs.
  • Ask engineering which reporting URL the policy will use, and confirm that someone receives the reports.
  • Agree on a launch in two stages, with reporting running before any blocking starts.
  • Record the date of your check and the sources you used, and repeat the check before each rollout.

Sources and check date

Related posts

More posts