{"uid":"cap_kUXWxVh2LIt4r5wk9pDZW","slug":"kihustle-csp-header-generator-0cc2d154","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/nexus/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_2Yv032P5nrg9MUFlE8C5e","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 Content Security Policy header for my site where default-src is 'self' and script-src allows 'self' and https://cdn.example.com.","exampleUseCases":[{"title":"Secure web app script policy","prompt":"Can you generate a CSP header for my web app where default-src is set to 'self' and script-src allows 'self' plus https://scripts.myapp.com?"},{"title":"Strict policy for no external scripts","prompt":"Build me a Content Security Policy header where both default-src and script-src are set to 'self' only — I want to block all external script sources."},{"title":"CDN-inclusive CSP for SPA","prompt":"Create a CSP header for my single-page app — default-src should be 'self' and script-src should allow 'self', https://cdn.jsdelivr.net, and https://unpkg.com."}],"resultDescription":"Returns a JSON object with a 'result' field containing the generated CSP header or processed output, and a 'status' field confirming success. The generated header can be applied directly to web server configuration or HTTP responses.","failureModes":["Invalid or malformed directive values in script_src or default_src may return an error or unexpected CSP string","Missing required fields may result in a minimal or empty policy being generated","Malformed JSON input body returns a parsing error","Network timeout if the service is unavailable"],"whenToPreferThis":"Choose this endpoint when you need a quick, programmatic way to generate a well-formed CSP header string from individual directives without manually constructing the policy syntax. Useful in CI/CD pipelines, security audits, or agent-driven web configuration workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T18:50:53.715Z","isFirstParty":false,"canonicalSlug":"kihustle-csp-header-generator-0cc2d154"}