My API was working locally, but when I deployed it on Vercel, it stopped working because my API uses the 'HTTP' method, and 'HTTPS' is required. The error message indicated that the page was loaded over HTTPS, but the XMLHttpRequest endpoint was insecure and requested 'HTTP'. As a result, the request was blocked and the content must be served over HTTPS.
*Notice: I'm not the owner of this API
Error: "Mixed Content: The page at 'https://my-app.vercel.app/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://my-api.com'. This request has been blocked; the content must be served over HTTPS."
How to fix it? Thank you for any help.
- I used CloudFlare with "Always use Https" but it didn't work for my domain:
myapp.supervps.ga
- How can I continue to access without using "HTTPS" or another workaround?