D
D
diadiasasha2019-12-13 14:08:33
1C-Bitrix
diadiasasha, 2019-12-13 14:08:33

How to display Yandex map when switching to https in Bitrix?

Hello! When translating a site to https, Yandex map is not loaded in Google Chrome due to mixed content. I tried all the methods that are described in blogs and forums:

$scheme = (CMain::IsHTTPS() ? "https" : "http");- deleting this line from the component - and the address ://api-maps.yandex.ru/ is so relative.

Added at the end of the settings.php file:

'https_request' => 
  array (
    'value' => true,
  ),


In the file dbconn.php added the line $_SERVER['HTTPS'] = 'on';

Zero reaction to all actions. I cleared the cache even after each save, it's still the same as it was and remains.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question