Skip to content

Commit 3fff211

Browse files
authored
feat: added google lookerstudio preset (#184)
1 parent 8c7c6db commit 3fff211

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ This package ships with a few commonly used presets to get your started. *We're
167167
| `Google TLD's` | Allow all Google Top Level Domains for 'connect' and 'image' |
168168
| `Google` | Google Analytics & Tag Manager |
169169
| `GoogleFonts` | [fonts.google.com](https://fonts.google.com) |
170+
| `GoogleLookerStudio` | [lookerstudio.google.com](https://lookerstudio.google.com) |
170171
| `GoogleRecaptcha` | [developers.google.com](https://developers.google.com/recaptcha) |
171172
| `Hcaptcha` | [hcaptcha.com](https://docs.hcaptcha.com) |
172173
| `Heap Analytics` | [heap.io](https://www.heap.io/) |

src/Presets/GoogleLookerStudio.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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 GoogleLookerStudio implements Preset
10+
{
11+
public function configure(Policy $policy): void
12+
{
13+
$policy
14+
->add(Directive::FRAME, [
15+
'https://lookerstudio.google.com',
16+
]);
17+
}
18+
}

0 commit comments

Comments
 (0)