{"uid":"cap_939U784AlA_UZBWMD6ilq","slug":"kihustle-csp-header-generator-c5e9cb08","name":"KiHustle CSP Header Generator","description":"Kostenlose Guides, Solo-Playbooks und Artikel zu KI, Automation und Side Hustles — für Menschen, die mit echten Systemen online Einkommen aufbauen wollen. Transparent finanziert über faire Affiliate-Links.","url":"https://kihustle.tech/agents/api/v1/csp-header-generator?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"script_src":{"type":"string"},"default_src":{"type":"string"}}},"responseSchema":{"type":"json","example":{"result":"processed","status":"success"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZgxygLwQEJRt0uzMpEqqJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a Content Security Policy (CSP) HTTP header string from provided source directives like script-src and default-src","exampleAgentPrompt":"Generate a CSP header for my site with default-src set to 'self' and script-src set to 'self' https://cdn.example.com — I need the full header string ready to deploy.","exampleUseCases":[{"title":"Secure new web app deployment","prompt":"I'm launching a new web app and need a CSP header — set default-src to 'self' and script-src to 'self' https://cdn.jsdelivr.net so only my own origin and that CDN can run scripts."},{"title":"Lock down third-party script sources","prompt":"Can you generate a Content Security Policy header where default-src is 'none' and script-src only allows 'self' and https://apis.google.com?"},{"title":"Harden existing site against XSS","prompt":"I want to tighten security on my site — build me a CSP header with default-src as 'self' and script-src restricted to 'self' 'nonce-abc123' so inline scripts without a nonce get blocked."}],"resultDescription":"Returns a JSON object with a 'result' field containing the generated CSP header string and a 'status' field indicating success or failure of the generation operation.","failureModes":["Missing or invalid directive values may produce a malformed policy string","Unsupported CSP directive syntax in input may be ignored or cause an error response","Empty input fields may result in a minimal or default-only policy","Service may return a generic error JSON if the request body is malformed"],"whenToPreferThis":"Choose this endpoint when you need to programmatically generate a Content Security Policy header string from structured directive inputs (script-src, default-src) without manually formatting the header syntax. Useful in CI/CD pipelines, web security automation, or agent workflows that need to inject CSP headers into deployment configs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T18:55:48.366Z","isFirstParty":false,"canonicalSlug":"kihustle-csp-header-generator-0cc2d154"}