Skip to content

Commit

Permalink
Update the readme to add new environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
edwilde committed Oct 19, 2023
1 parent cff9a02 commit cceb2c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ public function configure(): void
```
_Usually you'll define `private const FRAGMENTS = []` and add them in there so it's clear at the beginning what fragments you're adding._

To set the **report to**, we usually use an env var named `CSP_REPORT_TO`. You can also call `$this->reportTo()` in your policies configure func if required (perhaps you want the report URI based on the policy applied).
To set the **report to** url, we usually use an env var named `CSP_REPORT_TO`. The expiry time can also be set using `CSP_REPORT_TO_TTL` this tells the browser how long it should remember the url for.

You can also call `$this->reportTo()` in your policies configure func if required (perhaps you want the report URI based on the policy applied).

To add the policy to the list of applied policies you'll want to add some yaml config:
```yaml
Expand Down

0 comments on commit cceb2c4

Please sign in to comment.