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: 938a938f7515011d-ORD
connection: keep-alive
content-type: application/json; charset=utf-8
date: Wed, 30 Apr 2025 22:46:39 GMT
etag: W/"6712b5c7-1b1"
expires: Wed, 30 Apr 2025 22:56:39 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: 151c24c7b00180af9f042866408e04e7057b69a7
x-github-request-id: B0C2:8B685:18C9713:1A1B27B:6812A841
x-proxy-cache: MISS
x-served-by: cache-chi-klot8100168-CHI
x-timer: S1746053199.311835,VS0,VE51
CORS tester was built by @mscccc. The code is available on GitHub. Sponsored by HTML/CSS to Image.