Метод appendRequestPort

private static

Сигнатура метода

private static function appendRequestPort(string $portalDomain, PortalAddress $address): string

Возвращает: string

Описание

The port of the request, and only for the domain that answered it: a portal reached on a port of its own opens nothing on the standard one, while a stored domain that is not the host of this request is not known to answer on this port at all - and one carrying a port already has named the port it answers on. The host of the request decides the port and nothing else. The address a snippet published on a site of somebody else loads its code from is the domain the portal calls itself by, and a portal that calls itself nothing is answered with no snippet at all: a `Host` the caller sends must not become the origin of a `<script src>` running for every visitor of that site.

Параметры

2
Имя Тип По умолчанию Флаги
$portalDomain string —
—
$address PortalAddress —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Service/WebForm/EmbeddingSnippetBuilder.php
Расположение метода в файле
Строки 163–171

Исходный код

PHP