Answer the question
In order to leave comments, you need to log in
How to hardcode a request from https to http?
Hello, the main server is closed with an ssl certificate and transferred to https
At the current stage, there is no desire to transfer the scope server to https, so it is still http.
At first, JS cursed that it was impossible to mix HTTP with HTTP
Mixed Content: The page at 'https://host1/chart_datetime?id_scope_dir=1&id_scope_describe=p…bizml.ru&datetime_start=2020-10-30%2020:46&datetime_end=2020-10-30%2021:01' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://host2/scope/store_by_datetime?id_scope_dir=1&datetime_start=2020-10-30%2020:46&datetime_end=2020-10-30%2021:01'. This request has been blocked; the content must be served over HTTPS.
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
https://host2/scope/store_by_datetime?id_scope_dir=1&datetime_start=2020-10-30%2021:19&datetime_end=2020-10-30%2021:34
var url ='http://host2/scope/store_by_datetime?id_scope_dir='+id_scope_dir+'&datetime_start='+datetime_start+'&datetime_end='+datetime_end
Answer the question
In order to leave comments, you need to log in
Don't suffer... You
can do it in the majority of nginx mans, BUT as you noticed, the backing must have https otherwise you will always catch such crap
.
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
At the current stage, there is no desire to translate the scope server to https
Just connect Cloudflate, it can proxy https when accessing http.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question