We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8e7261 commit 35a351aCopy full SHA for 35a351a
README.md
@@ -284,7 +284,9 @@ You can allow fetching scripts from `www.google.com` by writing a custom preset.
284
namespace App\Support;
285
286
use Spatie\Csp\Directive;
287
+use Spatie\Csp\Keyword;
288
use Spatie\Csp\Policy;
289
+use Spatie\Csp\Preset;
290
291
class MyCspPreset implements Preset
292
{
@@ -313,7 +315,7 @@ First you must add the nonce to the right directives in your policy:
313
315
```php
314
316
public function configure(Policy $policy): void
317
- $this
318
+ $policy
319
->add(Directive::SCRIPT, 'self')
320
->add(Directive::STYLE, 'self')
321
->addNonce(Directive::SCRIPT)
0 commit comments