{"uid":"cap_YH1mDdgHCjDyFNronW23E","slug":"csp-header-analyzer-fd1ed925","name":"CSP Header Analyzer","description":"Fetch a URL and analyse its Content-Security-Policy header: presence, unsafe-inline, unsafe-eval, wildcard sources and parsed directives.","url":"https://164.160.90.241.sslip.io/api/sec-header-csp-analyzer?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"URL to audit"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MGoIKNmW3-sMXMkzJ-O7w","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a URL and analyzes its Content-Security-Policy header for presence, unsafe-inline, unsafe-eval, wildcard sources, and parsed directives.","exampleAgentPrompt":"Can you check whether https://example.com has a Content-Security-Policy header and flag any issues like unsafe-inline, unsafe-eval, or wildcard sources?","exampleUseCases":[{"title":"Pre-launch security header check","prompt":"Before we ship our new site at https://myapp.io, can you audit its Content-Security-Policy header and tell me if there are any dangerous settings like unsafe-inline or unsafe-eval?"},{"title":"Third-party vendor CSP audit","prompt":"I need to vet a vendor's security practices — can you fetch https://vendorportal.com and analyze its CSP header to see if it's properly configured or has wildcard sources?"},{"title":"Ongoing security compliance review","prompt":"As part of our quarterly security review, check https://dashboard.ourcompany.com for its Content-Security-Policy and list all the parsed directives along with any unsafe flags detected."}],"resultDescription":"Returns whether a CSP header is present on the target URL, whether it contains unsafe-inline or unsafe-eval directives, any wildcard sources found, and the full parsed list of CSP directives and their values.","failureModes":["URL is unreachable or times out — endpoint may return an error or empty result","Target site does not set a CSP header — result will indicate absence","Malformed URL input — may return a validation error","Target site blocks automated HTTP clients — fetch may fail","CSP header is present but malformed — parsing may produce incomplete directives"],"whenToPreferThis":"Choose this endpoint when you need a quick, automated audit of a specific URL's Content-Security-Policy header without running a full security scanner. Ideal for pre-launch checks, vendor due diligence, or compliance reviews where CSP posture is the primary concern. It is more focused than a general security header scanner and provides parsed directive-level detail rather than just a pass/fail.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:35:56.387Z","isFirstParty":false,"canonicalSlug":"csp-header-analyzer-fd1ed925"}