Skip to content

Instantly share code, notes, and snippets.

@ReesMorris

ReesMorris/csp-types.ts

Last active Apr 8, 2021
Embed
What would you like to do?
TypeScript Content Security Policy (CSP) Types
export type CSP =
| 'child-src'
| 'connect-src'
| 'default-src'
| 'font-src'
| 'frame-src'
| 'img-src'
| 'manifest-src'
| 'media-src'
| 'object-src'
| 'prefetch-src'
| 'script-src'
| 'script-src-elem'
| 'script-src-attr'
| 'style-src'
| 'style-src-elem'
| 'style-src-attr'
| 'worker-src'
| 'base-uri'
| 'plugin-types'
| 'sandbox'
| 'form-action'
| 'frame-ancestors'
| 'navigate-to'
| 'report-uri'
| 'report-to'
| 'block-all-mixed-content'
| 'referrer'
| 'require-sri-for'
| 'require-trusted-types-for'
| 'trusted-types'
| 'upgrade-insecure-requests';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment