Use this little website to test if a URL is setup correctly to work with CORS.
Shareable link: https://cors-test.codehappy.dev/?method=get&origin=https%3A%2F%2Fcors-test.codehappy.dev%2F&url=https%3A%2F%2Fadhi.sh%2F.well-known%2Fnostr.json
These are the response headers received when making the request.
access-control-allow-origin: *
age: 0
cache-control: max-age=600
cf-cache-status: DYNAMIC
cf-ray: 8e6e3846c7c313f2-ORD
connection: keep-alive
content-type: application/json; charset=utf-8
date: Sat, 23 Nov 2024 03:54:46 GMT
etag: W/"6712b5c7-1b1"
expires: Sat, 23 Nov 2024 04:04:46 GMT
last-modified: Fri, 18 Oct 2024 19:23:51 GMT
server: cloudflare
transfer-encoding: chunked
vary: Accept-Encoding
via: 1.1 varnish
x-cache: MISS
x-cache-hits: 0
x-fastly-request-id: 2fb5feba60ea1bc0ff81de255cef77bf2196dac9
x-github-request-id: 1C78:16FB:92E940:A4804C:67415206
x-proxy-cache: MISS
x-served-by: cache-chi-klot8100102-CHI
x-timer: S1732334086.261799,VS0,VE44
CORS tester was built by @mscccc. The code is available on GitHub. Sponsored by HTML/CSS to Image.