{"uid":"cap_jE3cfXWIGDwj_70vVh7p9","slug":"delx-commerce-cors-origin-check-5906e3f5","name":"Delx Commerce — CORS Origin Check","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/cors-origin-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"origin":{"type":"string","maxLength":8192,"description":"Origin supplied to CORS Origin Check; used only for this bounded calculation and processed in memory without retention."},"allowed":{"type":"array","items":{"type":"string","maxLength":8192},"maxItems":256,"description":"Allowed supplied to CORS Origin Check; used only for this bounded calculation and processed in memory without retention."},"credentials":{"type":"boolean","description":"Credentials supplied to CORS Origin Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"origin":"https://app.example.com/","allowed":true,"credentials":true},"schema":"delx/util-cors-origin-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"502a62c83d87812324c4b1fe1a2a0df77db850e0a6e49fef68313499e8d02d82","external_calls":0},"operation":"web_reliability:cors_origin_check"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HU1Pzb9kgyCegZsfaWk_R","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates whether a given origin is allowed by a CORS policy, checking against a list of permitted origins and credential requirements.","exampleAgentPrompt":"Check if the origin https://app.example.com is allowed by my CORS policy, given the allowed origins list ['https://app.example.com', 'https://admin.example.com'], with credentials enabled.","exampleUseCases":[{"title":"API gateway CORS validation","prompt":"I need to check whether requests from https://dashboard.myapp.com are permitted by my CORS policy — the allowed origins are ['https://dashboard.myapp.com', 'https://api.myapp.com'] and credentials should be true."},{"title":"Debugging cross-origin errors","prompt":"My frontend at https://staging.mysite.io keeps getting CORS errors. Can you verify if that origin is in my allowed list ['https://mysite.io', 'https://www.mysite.io'] with credentials set to false?"},{"title":"Security audit of CORS whitelist","prompt":"I'm auditing our CORS setup — please check if https://partner.vendor.com would be allowed through our policy with allowed origins ['https://trusted.vendor.com', 'https://partner.vendor.com'] and credentials enabled."}],"resultDescription":"Returns a JSON object with the normalized origin, a boolean indicating whether it is allowed, and whether credentials are permitted. Also includes a schema identifier, a pass/fail status, and an evidence block containing a SHA-256 hash of the input, a flag confirming no data is retained, and a count of external calls made (always 0, meaning fully in-memory computation).","failureModes":["Invalid or malformed origin URL may produce unexpected results","Allowed list exceeding 256 items will be rejected","Payment failure via x402 protocol will block the request","Origin string exceeding 8192 characters will be rejected","Missing required fields may result in validation errors"],"whenToPreferThis":"Use this endpoint when you need a trustless, pay-per-use, verifiable CORS origin validation with no signup or persistent data storage. Ideal for AI agents or automated pipelines that need on-demand CORS checks with cryptographic evidence of computation, especially when you want to avoid standing up your own CORS logic or need auditability via input hash. Prefer over self-hosted solutions when you need verifiable, stateless, zero-retention computation with micro-payment billing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T02:34:58.805Z","isFirstParty":false,"canonicalSlug":"delx-commerce-cors-origin-check-5906e3f5"}