I am trying to access my static files hosted on python anywhere from a website hosted elsewhere, but I get the error:
Access to XMLHttpRequest at 'https://...pythonanywhere.com/...' from origin 'https://my_other_domain.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
The solution is to add headers to the response from the server, but I couldn't find such an option for static hosted files. My other option is to create a python webapp that serves the files and adds the headers, but I was wondering if there is a simpler way.
Thanks!