D
D
dev4002016-09-07 15:24:11
PHP
dev400, 2016-09-07 15:24:11

Cant in Bitrix and https?

In the infoblock, the property is "binding to Yandex maps", and the map is not loaded, since the site has the https protocol, and there is an error in the console, Bitrix makes a request to the api of Yandex Maps via http. What do you advise?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
no_one_safe, 2016-09-08
@dev400

Check the $_SERVER variable. In order for everything in Bitrix to work on https (including, for example, ajax forms), $_SERVER must contain
either
or
$_SERVER['SERVER_PORT']='443'

A
Alexander Bukhalo, 2016-09-07
@evilsprut

Remove http:// from the address in general, the browser will determine which protocol to substitute.

N
Nicholas, 2016-09-07
@healqq

All resource connections should be made via //: . Then the browser will choose the protocol itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question