Vinoteca: модуль, шаблон и компоненты интернет-магазина вина на 1С-Битрикс

This commit is contained in:
jimagie committed 2026-10-22 19:28:52 +05:00
commit bb7d8af290
469 files changed
+26426

No files matched your search

@@ -0,0 +1,17 @@
<?php
declare(strict_types=1);
namespace Jinove\Vinoteca;
use Bitrix\Main\HttpRequest;
class Origin
{
public static function allowed(HttpRequest $request): bool
{
$origin = (string)($request->getHeader("Origin") ?? "");
return $origin === "" || $origin === Config::host();
}
}