{"uid":"cap_woLX22qpRQNjpDxoj8Js4","slug":"cors-origin-normalize-utility-bbb2d329","name":"CORS Origin Normalize Utility","description":"Machine-callable x402-paid utilities for autonomous agents.","url":"https://creator-desk-x402-isolated.onrender.com/v1/utility/cors-origin-normalize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{},"options":{"type":"object"}}},"responseSchema":{"type":"json","example":{"result":"example","operation":"cors_origin_normalize"}},"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_cmkdZ6vPWpjz1sjZGKUd2","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":"Normalizes a CORS origin value to a canonical, consistent format for use in HTTP headers or configuration","exampleAgentPrompt":"Can you normalize this CORS origin for me — 'https://MyApp.Example.com:443/' — so it's in a clean, canonical format I can use in my API gateway config?","exampleUseCases":[{"title":"API gateway CORS config cleanup","prompt":"I'm setting up CORS for my API and the origin 'http://staging.myapp.com:80/' has inconsistent casing and a trailing slash — can you normalize it to a canonical form I can paste into my config?"},{"title":"Multi-environment origin standardization","prompt":"I have a list of origin URLs from different environments like 'HTTPS://App.MyCompany.COM/' and 'http://app.mycompany.com:443' — normalize this one to a consistent canonical format: 'HTTPS://App.MyCompany.COM/'"},{"title":"CORS header validation pipeline","prompt":"Before I add this origin to my allowlist, can you normalize 'http://localhost:3000/' to its canonical CORS origin format so I know exactly what string to compare against incoming request headers?"}],"resultDescription":"A JSON object containing a 'result' field with the normalized/canonical CORS origin string, and an 'operation' field confirming 'cors_origin_normalize' was performed.","failureModes":["Invalid or unparseable URL input returns an error result","Malformed options object may cause unexpected behavior","Empty value input may return an error or empty result","Network timeout on the Render.com hosted service during cold start"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call utility to programmatically normalize CORS origin strings without standing up your own parsing logic — particularly useful in agent pipelines that dynamically configure API gateways, validate allowlists, or process user-supplied URLs at low volume where $0.01/call is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:48:54.690Z","isFirstParty":false,"canonicalSlug":"cors-origin-normalize-utility-bbb2d329"}