{"uid":"cap_8xtfp54XIgw2Q1pPpAv_T","slug":"kihustle-csp-header-generator-87061d71","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/bot-bazaar/api/v1/csp-header-generator","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_rA-LX-KIBhoKa9E4pNs2T","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 based on provided script and default source directives","exampleAgentPrompt":"Generate a CSP header for my site where default-src is 'self' and script-src allows 'self' plus https://cdn.example.com.","exampleUseCases":[{"title":"Securing a web app deployment","prompt":"I'm deploying my React app and need a Content Security Policy header — set default-src to 'self' and script-src to 'self' and https://unpkg.com, can you generate that header for me?"},{"title":"Locking down third-party script sources","prompt":"My site loads scripts only from Google Analytics and my own domain — can you build a CSP header where script-src includes https://www.google-analytics.com and 'self', and default-src is 'self'?"},{"title":"Automated CSP generation in CI pipeline","prompt":"For my CI pipeline, generate a Content Security Policy header with default-src set to 'none' and script-src set to 'self' so I can inject it into my server config automatically."}],"resultDescription":"Returns a JSON object with a 'result' field containing the generated CSP header or policy string and a 'status' field confirming success of the operation.","failureModes":["Missing or malformed input fields may result in an incomplete or default CSP header","Invalid source directive values could cause unexpected policy strings","Network timeout or service unavailability returning non-200 status","Payment failure via x402 protocol preventing request processing"],"whenToPreferThis":"Choose this endpoint when you need a quick, programmatic way to generate a properly formatted Content-Security-Policy header string from script-src and default-src directives, especially in automated pipelines or agent workflows where constructing CSP syntax manually is error-prone.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:58:27.665Z","isFirstParty":false}