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%2Fwww.doerfelverse.com%2Ftracks%2Fmario-kurt.mp3
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.
accept-ranges: bytes
cache-control: max-age=172800
cf-cache-status: MISS
cf-ray: 8e9972fb01216351-ORD
connection: keep-alive
content-length: 7528320
content-type: audio/mpeg
date: Thu, 28 Nov 2024 09:49:39 GMT
etag: "72df80-60bb90cdb7953"
expires: Sat, 30 Nov 2024 09:49:38 GMT
last-modified: Tue, 05 Dec 2023 01:21:12 GMT
server: cloudflare
vary: User-Agent
CORS tester was built by @mscccc. The code is available on GitHub. Sponsored by HTML/CSS to Image.