Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Cors
+ Граф наследования:Cors:

Открытые члены

 __construct (string $origin=null, bool $credentials=false)
 
 onBeforeAction (Main\Event $event)
 
 onAfterAction (Main\Event $event)
 
 setAllowedMethods (array $methods)
 
 setAllowedHeaders (array $headers)
 
- Открытые члены унаследованные от Base
 __construct ()
 
 bindAction (Action $action)
 
 getAction ()
 
 listAllowedScopes ()
 
 onBeforeAction (Event $event)
 
 onAfterAction (Event $event)
 
 getErrors ()
 
 getErrorByCode ($code)
 

Дополнительные унаследованные члены

- Открытые статические члены унаследованные от Base
static className ()
 
- Защищенные члены унаследованные от Base
 addError (Error $error)
 
- Защищенные данные унаследованные от Base
 $errorCollection
 
 $action
 

Подробное описание

См. определение в файле cors.php строка 12

Конструктор(ы)

◆ __construct()

__construct ( string $origin = null,
bool $credentials = false )

Constructor.

Аргументы
string | null$originOrigin. NULL - take from Origin header, '*' or like 'https://example.com'.
bool$credentialsSet header Access-Control-Allow-Credentials.

См. определение в файле cors.php строка 29

Методы

◆ onAfterAction()

onAfterAction ( Main\Event $event)

См. определение в файле cors.php строка 42

◆ onBeforeAction()

onBeforeAction ( Main\Event $event)

См. определение в файле cors.php строка 37

◆ setAllowedHeaders()

setAllowedHeaders ( array $headers)

См. определение в файле cors.php строка 53

◆ setAllowedMethods()

setAllowedMethods ( array $methods)

См. определение в файле cors.php строка 47