I am trying to retrieve data(string) from a flask server with the a GET request and the xhttp.responseText is always an empty string.
Here is my python code
Here is my Html code
edit: console tab says: Access to XMLHttpRequest at 'http://127.0.0.1:5000/' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.