Skip to content

Commit

Permalink
Give example use case for hostname policy
Browse files Browse the repository at this point in the history
  • Loading branch information
wbamberg committed Oct 17, 2024
1 parent c52d77d commit e1e0407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/http/csp/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ The keyword `'self'` allows resources which are same-origin with the document it
img-src 'self'
```

You can also specify one or more hostnames, potentially including wildcards, and only resources served from those hosts will be allowed.
You can also specify one or more hostnames, potentially including wildcards, and only resources served from those hosts will be allowed. This might be used, for example, to allow content to be served from a trusted CDN.

```plain
img-src *.example.org
Expand Down

0 comments on commit e1e0407

Please sign in to comment.