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%2Flecturify.net%2F.well-known%2Fnostr.json%3Fname%3Dyonle
It does not have the access-control-allow-origin
header set to *
. Without this header, requests from other domains cannot be made to it via a users browser.
If you have access to the server for the URL, you'll need to modify it to add the access-control-allow-origin
header. If you do not have access, you'll need to upload the file somewhere else.
These are the response headers received when making the request.
cf-cache-status: DYNAMIC
cf-ray: 8c5dd540e6eac871-DFW
connection: keep-alive
content-length: 310
content-type: application/json
date: Fri, 20 Sep 2024 00:52:29 GMT
last-modified: Fri, 01 Mar 2024 15:52:02 GMT
server: cloudflare
CORS tester was built by @mscccc. The code is available on GitHub. Sponsored by HTML/CSS to Image.