tao-test/app/tao/config/default/actionProtection.conf.php

20 lines
469 B
PHP
Raw Normal View History

2022-08-29 20:14:13 +02:00
<?php
use oat\tao\model\security\ActionProtector;
use oat\tao\model\security\DataAccess\Repository\SecuritySettingsRepository;
use oat\tao\model\service\SettingsStorage;
return new ActionProtector(
new SecuritySettingsRepository(
new SettingsStorage(
[
'persistence' => 'default_kv',
'key_namespace' => 'tao:settings:',
]
)
),
[
'X-Content-Type-Options: nosniff',
]
);