D
D
dimonfreeman2020-02-16 13:13:13
1C-Bitrix
dimonfreeman, 2020-02-16 13:13:13

Question regarding - request has been blocked; the content must be served over HTTPS?

(index):1 Mixed Content: The page at ' https://www.site.ru/category/test/ ' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ' www.site.ru:443/category/test ''. This request has been blocked; the content must be served over HTTPS.

Writes an error and in no way can you add a product to the basket / favorites in the catalog ...
server url and site url without http are registered

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Viktor Taran, 2020-02-17
@dimonfreeman

here is the problem with all the manuals for setting up a bunch of nginx + apache for some reason inexplicable to me, they are all 100% incorrect, all of them have http on the https backing and there is a fucking attempt to change the protocol. however, in the harsh realities of life, this naturally does not always work.
well, yes, in addition, there is still a place to be an erroneous redirect not to https://www.site.ru
but to
www.site.ru:443
1. put the certificate on the back
2. find where this redirect occurs and correct the problem.

A
Anton, 2020-02-16
@anton99zel

f12 and see what's in the console in red.
Surely scripts are connected from other resources via http, and maybe from your own server.

A
Aisamiery, 2020-02-16
@Aisamiery

You have BitrixVM and nginx works on https, and apache behind it on http.
The easiest way is to send settings and a certificate to Apache, so that Bitrix understands that it actually works on https and generates normal links, but you can also tune the config

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question