What I can do to fix this (other than installing a real SSL certificate).
You can’t.
On an https webpage you can only make AJAX request to https webpage (With a certificate trusted by the browser, if you use a self-signed one, it will not work for your visitors)
More Related Contents:
- How to create an HTTPS server in Node.js?
- Method for streaming data from browser to server via HTTP
- How to intercept all http requests including form submits
- Firefox setting to enable cross domain Ajax request
- How can I use JavaScript on the client side to detect if the page was encrypted?
- Configuring HTTPS for Express and Nginx
- nodejs – error self signed certificate in certificate chain
- Restrictions of XMLHttpRequest’s getResponseHeader()?
- “Cross origin requests are only supported for HTTP.” error when loading a local file
- Origin null is not allowed by Access-Control-Allow-Origin
- Allow Google Chrome to use XMLHttpRequest to load a URL from a local file
- Add a “hook” to all AJAX requests on a page
- What is the cleanest way to get the progress of JQuery ajax request?
- Using http rest apis with angular 2
- Why am I seeing an “origin is not allowed by Access-Control-Allow-Origin” error here? [duplicate]
- Is onload equal to readyState==4 in XMLHttpRequest?
- Calling a JSON API with Node.js
- What do the different readystates in XMLHttpRequest mean, and how can I use them?
- Intercept fetch() API requests and responses in JavaScript
- JS – Mobile – Open Safari from any browser [closed]
- Determine if ajax call failed due to insecure response or connection refused
- XMLHttpRequest to Post HTML Form
- Add CORS header to an http request using Ajax
- Axios – DELETE Request With Request Body and Headers?
- Hide 401 console.error in chrome dev tools getting 401 on fetch() call [duplicate]
- XMLHttpRequest 206 Partial Content
- Ajax – 500 Internal Server Error
- Calling Express Route internally from inside NodeJS
- How to download a csv file using PhantomJS
- Intercept XMLHttpRequest and modify responseText