{"uid":"cap_d69Wi8Vcj_RcSkzG4jsiu","slug":"origin-header-normalize-452eeb8e","name":"Origin Header Normalize","description":"Origin Header Normalize: Origin Header Normalize normalizes scheme, host, and effective port from an Origin value from bounded caller-supplied values without an external provider. Call Origin Header Normalize before accepting, caching, redirecting, or retrying a caller-supplied web response. Returns normalized web evidence, the computed finding, and an explicit pass or advisory status for Origin Header Normalize as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party,…","url":"https://api.delx.ai/api/v1/x402/origin-header-normalize","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"origin":{"type":"string","maxLength":8192,"description":"Origin supplied to Origin Header Normalize; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"host":"example.com","origin":"https://example.com","scheme":"https","effective_port":443},"schema":"delx/util-origin-header-normalize/v1","status":"pass","evidence":{"retained":false,"input_sha256":"07b2bd8501ded3c8a0fda45530946ed82acb0010a7632e08f86773e43703f622","external_calls":0},"operation":"web_reliability:origin_header_normalize"}},"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_vHQbehlffWimlXUNHW9jJ","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":"Normalizes the scheme, host, and effective port from a caller-supplied HTTP Origin header value into a canonical, validated form with pass/advisory status.","exampleAgentPrompt":"Normalize this Origin header value for me and tell me if it passes: 'https://example.com:443' — I need the canonical scheme, host, and effective port before I accept this request.","exampleUseCases":[{"title":"CORS preflight origin validation","prompt":"Before I accept this CORS request, normalize and validate the Origin header 'http://app.mysite.com:8080' — give me the canonical form and whether it passes."},{"title":"Cache key normalization for origin","prompt":"I'm about to cache a response keyed by origin. Can you normalize 'https://api.example.com' so I have a consistent canonical key with the effective port resolved?"},{"title":"Redirect safety check on caller origin","prompt":"I need to redirect a response back to the caller's origin. First normalize 'http://localhost:3000' and confirm it's a valid, well-formed origin before I proceed."}],"resultDescription":"Returns a versioned deterministic JSON object containing the normalized origin (with canonical scheme, host, and effective port), the computed finding describing what was parsed, and an explicit pass or advisory status indicating whether the Origin value is well-formed and safe to use.","failureModes":["Malformed or unparseable Origin string returns advisory status with finding describing the error","Empty or missing 'origin' field may return a validation error or advisory","Origin strings exceeding 8192 characters are rejected","Non-standard schemes may produce advisory rather than pass status","Opaque origins (e.g. 'null') may produce advisory status"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, zero-external-dependency normalization of an HTTP Origin header value — especially before CORS validation, cache keying, redirect handling, or retry logic where a non-canonical origin could introduce security or correctness issues. Prefer it over rolling your own parser when you need a consistent effective-port computation and an explicit pass/advisory signal as structured JSON.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:00:46.514Z","isFirstParty":false}