Skip to content

Commit

Permalink
Fix minor mistake: you send two directives not two headers
Browse files Browse the repository at this point in the history
"report-to" and "report-uri" are directives within the CSP Header. Text said: "both headers" which is technically wrong.
  • Loading branch information
hmolsen authored Jan 14, 2025
1 parent bdecbff commit 4097c25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ The JSON for a single report might look like this:
## Usage notes

The `report-to` directive is intended to replace `report-uri`, and browsers that support `report-to` ignore the `report-uri` directive.
However, until `report-to` is broadly supported you can specify both headers as shown:
However, until `report-to` is broadly supported you can specify both directives as shown:

```http
Content-Security-Policy: …; report-uri https://endpoint.example.com; report-to endpoint_name
Expand Down

0 comments on commit 4097c25

Please sign in to comment.