Ottengo però un errore in console
Access to fetch at 'https://davidemercanti.altervista.org/ApiFitriV2/HASH__classifica_2021.txt' from origin 'https://localhost:7135' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled
Può dipendere da qualche impostazione del file htaccess?
Come è possibile configurarlo per abilitare CORS?
Dovresti trasformare la pagina in una pagina PHP, quindi all'inizio impostare un header (con la funzione header()) che consenta l'accesso dall'esterno.