Forums

Getting insecure insecure XMLHttpRequest

Hi! I have a free website on pythonanywhere that serves as a backend for my university project. I deployed the frontend on google firebase's free hosting, but when my frontend does an api call to my backend here, it doesn't work and instead gives me a "...was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://jirroreo.pythonanywhere.com/api/v1/latest_products'. This request has been blocked; the content must be served over HTTPS". Any help on what i can do to fix this?

Looks like you need to provide https://jirroreo.pythonanywhere.com/api/v1/latest_products not http://jirroreo.pythonanywhere.com/api/v1/latest_products url to that service