{"uid":"cap_BmqxNvOZ1NUBkQdF_zq8U","slug":"bot-bazaar-cors-header-linter-for-x402-payments-51814b61","name":"Bot Bazaar CORS Header Linter for x402 Payments","description":"Lint CORS response headers to ensure browser/agent x402 clients can send PAYMENT-SIGNATURE and read PAYMENT-REQUIRED / PAYMENT-RESPONSE.","url":"https://bot-bazaar.fly.dev/v1/x402/cors-header-check?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","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"expose_headers":{"type":"string","description":"Access-Control-Expose-Headers value"}}}},"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_lDhUeJB142R00FNnp65MR","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":"Validates CORS response headers to confirm browser and agent x402 clients can send PAYMENT-SIGNATURE and read PAYMENT-REQUIRED / PAYMENT-RESPONSE headers","exampleAgentPrompt":"Can you lint the CORS headers on my x402 endpoint using a GET method and check whether the Access-Control-Expose-Headers includes PAYMENT-REQUIRED and PAYMENT-RESPONSE so browser agents can read them?","exampleUseCases":[{"title":"Pre-launch x402 CORS compliance check","prompt":"Before I go live, can you check if my x402 API's CORS headers are properly configured for GET requests — specifically whether browsers and agents will be able to send PAYMENT-SIGNATURE and read back PAYMENT-REQUIRED and PAYMENT-RESPONSE?"},{"title":"Debugging broken x402 browser payments","prompt":"My browser-based x402 agent is failing to read payment headers cross-origin — can you lint the CORS setup for a GET request and tell me which headers are missing or misconfigured?"},{"title":"Validating expose-headers on an x402 DELETE endpoint","prompt":"I've set Access-Control-Expose-Headers to 'Content-Type, PAYMENT-RESPONSE' on my server — can you run the CORS header check for a DELETE method and tell me if that's sufficient for x402 compatibility?"}],"resultDescription":"Returns a structured lint report indicating whether the CORS headers are correctly configured for x402 payment flows, identifying missing or misconfigured headers such as Access-Control-Expose-Headers, Access-Control-Allow-Headers, and specific x402 payment header entries (PAYMENT-SIGNATURE, PAYMENT-REQUIRED, PAYMENT-RESPONSE).","failureModes":["Missing required 'input' object in request body returns validation error","Unsupported HTTP method (e.g. POST, PUT) returns schema error since only GET, HEAD, DELETE are allowed","Malformed expose_headers query param may produce incomplete lint results","Server unreachable or timeout returns connection error","Ambiguous or incomplete CORS configuration may yield inconclusive lint output"],"whenToPreferThis":"Choose this endpoint when you need to verify that an x402-enabled HTTP API correctly exposes and allows payment-related CORS headers before deploying or debugging cross-origin agent/browser payment flows. It is specifically tailored to x402 protocol header requirements (PAYMENT-SIGNATURE, PAYMENT-REQUIRED, PAYMENT-RESPONSE) rather than generic CORS testing tools, making it ideal for developers building or integrating x402 payment servers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:06:59.041Z","isFirstParty":false,"canonicalSlug":"bot-bazaar-cors-header-linter-for-x402-payments-51814b61"}