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&url=https%3A%2F%2Fapemithrandir.com%2F.well-known%2Fnostr.json%3Fname%3Dapemithrandir
These are the response headers received when making the request.
accept-ranges: bytes
access-control-allow-headers: Content-Type
access-control-allow-methods: GET, OPTIONS
access-control-allow-origin: *
cf-cache-status: DYNAMIC
cf-ray: 8e1ae8b797cfe164-ORD
connection: keep-alive
content-length: 328
content-type: application/json
date: Wed, 13 Nov 2024 01:15:10 GMT
etag: "66e620d7-148"
last-modified: Sat, 14 Sep 2024 23:48:39 GMT
server: cloudflare
CORS tester was built by @mscccc. The code is available on GitHub. Sponsored by HTML/CSS to Image.