File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ This package ships with a few commonly used presets to get your started. *We're
160
160
| ` Algolia ` | [ algolia.com] ( https://www.algolia.com ) |
161
161
| ` Bootstrap ` | [ getbootstrap.com] ( https://getbootstrap.com ) |
162
162
| ` Bunny Fonts ` | [ fonts.bunny.net] ( https://fonts.bunny.net/ ) |
163
+ | ` Cloudflare Cdn ` | [ cloudflare.com] ( https://www.cloudflare.com/en-in/application-services/products/cdn/ ) |
163
164
| ` Cloudflare Turnstile ` | [ cloudflare.com] ( https://www.cloudflare.com/application-services/products/turnstile/ ) |
164
165
| ` Cloudflare Web Analytics ` | [ cloudflare.com] ( https://developers.cloudflare.com/web-analytics/ ) |
165
166
| ` Fathom ` | [ usefathom.com] ( https://usefathom.com ) |
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Spatie \Csp \Presets ;
4
+
5
+ use Spatie \Csp \Directive ;
6
+ use Spatie \Csp \Policy ;
7
+ use Spatie \Csp \Preset ;
8
+
9
+ class CloudflareCdn implements Preset
10
+ {
11
+ public function configure (Policy $ policy ): void
12
+ {
13
+ $ policy
14
+ ->add ([Directive::STYLE , Directive::SCRIPT ], [
15
+ 'https://cdnjs.cloudflare.com ' ,
16
+ ]);
17
+ }
18
+ }
You can’t perform that action at this time.
0 commit comments