Skip to content

Commit

Permalink
docs: add report uri directive to CSP example (#12788)
Browse files Browse the repository at this point in the history
* add report uri directive to example

* generate types

* move line higher

* the
  • Loading branch information
eltigerchino authored Oct 10, 2024
1 parent 8aa95b4 commit 989949a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/kit/src/exports/public.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,10 @@ export interface KitConfig {
* directives: {
* 'script-src': ['self']
* },
* // must be specified with either the `report-uri` or `report-to` directives, or both
* reportOnly: {
* 'script-src': ['self']
* 'script-src': ['self'],
* 'report-uri': ['/']
* }
* }
* }
Expand Down
4 changes: 3 additions & 1 deletion packages/kit/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,10 @@ declare module '@sveltejs/kit' {
* directives: {
* 'script-src': ['self']
* },
* // must be specified with either the `report-uri` or `report-to` directives, or both
* reportOnly: {
* 'script-src': ['self']
* 'script-src': ['self'],
* 'report-uri': ['/']
* }
* }
* }
Expand Down

0 comments on commit 989949a

Please sign in to comment.