How to make http requests to the local domain from HTTPS app?

I wrote a simple PWA application, which sends fetch requests to the local domain. https://webostap.github.io/opd/
But there is a problem:
  • PWA application can run only on HTTPS.
  • normal HTTPS on the local domain I can't do

Now for the application you want to allow the browser's mixed content. Is there any way to fix this?
1 answer
April 3rd 20 at 17:26
You may not all is well prescribed in your PWA.
Read here.
Good afternoon, thanks for the reply. I studied the material here, but it doesn't seem to solve the problem. Maybe I incorrectly described the situation:
I have a local web server on the local domain. And there is also a pwa application hosted on github.io
The application needs to perform queries to the local domain but can't because the app operates over https, and the local domain - http. - Garth25 commented on April 3rd 20 at 17:29
@Garth25, You confuse the PWA and SPA.
You - SPA.
It is possible to work only within a single Protocol.
Call the SPA link from the local server and take via fetch() on the http Protocol. Do encrypt traffic. - Theresa_Harris26 commented on April 3rd 20 at 17:32

Find more questions by tags BrowsersHTTPSLocal serverDigital certificatesProgressive web applications