Trying to POST to an external ip address

I have set up a website using Cloudflare and on a button press
await‘http:/’,jsonifiedData, {headers : {‘Access-Control-Allow-Origin’ : ‘*’, ‘Access-Control-Allow-Methods’:‘GET,POST’}}) which is an endpoint through which I can reach flask. I have tried everything in my power for a week to get it running but i’ve hit so many CORS errors, I’m a few errors away from punching a hole in my pc… I need the easiest way my website can access that IP without getting Mixed Content: The page at ‘https:/mypage’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http:/’. This request has been blocked; the content must be served over HTTPS.

Somethings to note, endpoint doesnt serve on HTTPS. I’ve tried putting an SSL certificate on Flask, my website still gave an error when trying to POST, I’ve heard of subdomain but I don’t know how to implement it, I tried using a worker and I failed terribly… I am in desperate need of help… at my wits end XD

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.