Skip to content
benchline
ToolsMCPAbout
benchline

82 tools for people who ship the web. 70 run entirely in your browser. No account, no upload.

All tools operational

Tools

All toolsllms.txt generatorAI SEO checkerOG image generatorJWT decoder

Categories

All categoriesDeveloperData & FormatsSEO & AI SearchImage & MediaPDF & Documents

For agents

MCP setupAI accessllms.txtllms-full.txtOpenAPI

Benchline

AboutFounderPrivacyGitHubSitemap

benchline

© 2026 Benchline. Built by Waseem Anjum. MIT licensed.Built for the browser, callable over MCP.
  1. Tools
  2. Security & Crypto
  3. Headers
  4. CSP builder

CSP builder

Build a Content-Security-Policy and a Next.js headers snippet.

Runs in your browser
Use via MCP

MCP

Use this tool from your agent

Add the server once, then ask for the job in plain words. No key.

Setup guideAll MCP tools

Tool name

build_csp

Endpoint

https://benchline.fabwaseem.com/mcp
Auth
None
Rate
60 / min
  1. 1Add the server config for your client.
  2. 2Ask your agent to run build_csp, or describe the job.
  3. 3Or send the tools/call request yourself.
~/.cursor/mcp.jsonjson
1{
2 "mcpServers": {
3 "benchline": {
4 "url": "https://benchline.fabwaseem.com/mcp"
5 }
6 }
7}
tools/call requestjson
1{
2 "jsonrpc": "2.0",
3 "id": 1,
4 "method": "tools/call",
5 "params": {
6 "name": "build_csp",
7 "arguments": {
8 "upgradeInsecureRequests": true,
9 "blockAllMixedContent": false
10 }
11 }
12}

Next

Related tools

  • HTTP headersFollow redirects and grade the security headers on a public URL.HTTPMCPNew
  • Next.js Dockerfile generatorGenerate a production multi-stage Dockerfile for Next.js, plus .dockerignore and compose.Next.jsMCPNew
  • Meta tags inspectorRead title, description, canonical, robots, Open Graph, Twitter, and JSON-LD types from one public URL.Social previewsMCPNew
  • robots.txt checkerRead allow and disallow rules, sitemap links, and the mistakes that make a robots.txt file lie.AI searchMCPNew

Guide

How it works

Free Content-Security-Policy generator. Fill in directives or paste a policy, then copy the header and a next.config headers() snippet. Warnings call out wildcards, unsafe-inline, and a missing object-src or frame-ancestors.
  1. 1Start from a preset or paste a policyStrict blocks by default. The Next.js preset allows what a typical app needs, and the notes say what is loose.
  2. 2Edit directivesEach field is one directive. Leave a field blank to omit it.
  3. 3Copy the snippetThe header line and the next.config snippet stay in sync with the fields.

FAQ

Questions people ask

Directives

Policyplaintext
1

Replaces the fields when you leave the box.

upgrade-insecure-requests
block-all-mixed-content

Header

Content-Security-Policyplaintext
1Content-Security-Policy: default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'; font-src 'self'; connect-src 'self'; frame-ancestors 'none'; object-src 'none'; base-uri 'none'; form-action 'self'; upgrade-insecure-requests
next.config.tstypescript
1const contentSecurityPolicy = `default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'; font-src 'self'; connect-src 'self'; frame-ancestors 'none'; object-src 'none'; base-uri 'none'; form-action 'self'; upgrade-insecure-requests`;
2
3const nextConfig = {
4 async headers() {
5 return [
6 {
7 source: "/:path*",
8 headers: [
9 { key: "Content-Security-Policy", value: contentSecurityPolicy },
10 ],
11 },
12 ];
13 },
14};
15
16export default nextConfig;
17
  • Passbase-uri'none'
  • Passdefault-src'none'
  • Passframe-ancestors'none'
  • Passobject-srcPlugins and legacy embeds are blocked.
  • Passupgrade-insecure-requestsHTTP subresources are upgraded.
0 notes⌘⇧C copy header