mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
22 lines
466 B
PHP
22 lines
466 B
PHP
<?php
|
|
|
|
namespace App\Policies;
|
|
|
|
use Spatie\Csp\Directive;
|
|
use Spatie\Csp\Policies\Basic;
|
|
|
|
class CustomCsp extends Basic
|
|
{
|
|
/**
|
|
* Create a new policy instance.
|
|
*/
|
|
public function configure()
|
|
{
|
|
parent::configure();
|
|
$this->addDirective(Directive::SCRIPT, 'self')
|
|
->addDirective(Directive::STYLE, 'self')
|
|
->addNonceForDirective(Directive::SCRIPT)
|
|
->addNonceForDirective(Directive::STYLE);
|
|
}
|
|
}
|