Yes, a policy of the same origin stops you. You must use the same workarounds as for cross-domain requests.
Requests from an insecure website are unsafe, even if you make requests to the HTTPS URL (because the MITM attack can replace all "https" with "http"), so you should consider using HTTPS for the entire page.
source
share