AllOrigins CC: fetch any web address from here, with CORS headers on the answer
The answer as it came, status and headers included:
curl 'https://allorigins.cc/?https://example.com/data.json'
As JSON, with "text", "code", "type", "fetched" and "head":
curl 'https://allorigins.cc/wrap/https://example.com/data.json'
Your method, headers and body are passed on:
curl -X POST -H 'Content-Type: application/json' -d '{"a":1}' 'https://allorigins.cc/?https://example.com/api'
From a web page:
fetch('https://allorigins.cc/?https://example.com/data.json').then(r => r.text())
http and https only. Redirects are followed. No key, no account.
|