{"uid":"cap_7eRMiaEX5CVRS0O5A-bhx","slug":"aiskills402-cors-config-review-d46aa7a3","name":"AISkills402: CORS Config Review","description":"CORS Config Review — Reviews CORS code or server configuration (an Express or Flask handler, an nginx block, a framework setting) for the five mistakes that let a hostile web page read private responses, and lists only those, one line each with a fixed code, the place, why it is dangerous and the fix - or exactly No findings. It catches a request Origin copied into the allow header while cookies are allowed, a wildcard origin together with credentials, the null origin allowed, an origin check b…","url":"https://api.aiskills402.com/v1/skills/cors-config-review/file?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","HEAD"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"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":"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.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_rCoMzp13rkOI1UxjcsqFs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Reviews CORS server configuration or code for the five critical misconfiguration patterns that allow hostile web pages to read private responses, returning findings with codes, locations, risk explanations, and fixes.","exampleAgentPrompt":"Can you review this Express CORS middleware for security issues — I want to know if it has any of the classic misconfigurations like a reflected Origin, wildcard with credentials, or the null origin being allowed?","exampleUseCases":[{"title":"Pre-deployment CORS security audit","prompt":"Before I push this to production, can you audit my nginx CORS block for the five dangerous misconfiguration patterns — like reflecting the request Origin while cookies are enabled, or a wildcard combined with credentials?"},{"title":"Debugging a suspicious CORS policy","prompt":"I inherited this Flask CORS handler and I'm worried it might be leaking private responses to hostile sites — can you check it for misconfigurations like an insecure origin check bypass or the null origin being whitelisted?"},{"title":"Code review for a new API CORS setup","prompt":"I just wrote a new CORS configuration for my REST API using Express — can you check it specifically for the wildcard-with-credentials mistake, reflected Origin with cookies, and any other patterns that let a hostile web page steal authenticated responses?"}],"resultDescription":"A list of up to five security findings, each on a single line containing: a finding code, the exact location in the submitted configuration, why it is dangerous, and the recommended fix. If no issues are found, returns exactly 'No findings'.","failureModes":["Input is not a valid CORS configuration or server config block — may return no findings or an error","Obscure framework-specific CORS wrappers may not be recognized","Partial or truncated configuration snippets may produce incomplete analysis","Non-CORS security issues in the submitted code are out of scope and will not be reported"],"whenToPreferThis":"Choose this endpoint when you need a focused, deterministic audit of CORS configuration code specifically for the five highest-risk credential-leaking patterns. Prefer it over a general security scanner when you want concise, actionable per-finding output (code + location + danger + fix) without noise from unrelated issues, and when you are working with Express, Flask, nginx, or similar CORS handler configurations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:37:18.228Z","isFirstParty":false,"canonicalSlug":"aiskills402-cors-config-review-d46aa7a3"}