CORS preflight
/v1/collect
const url = 'https://stitch-collector-dev.magic-blocks.workers.dev/v1/collect';const options = {method: 'OPTIONS'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request OPTIONS \ --url https://stitch-collector-dev.magic-blocks.workers.dev/v1/collectResponses
Section titled “ Responses ”Allowed for a registered origin.