CSP directive

One rule inside a Content Security Policy, such as script-src, that lists the allowed sources for one kind of resource.

In more detail

default-src is the fallback for types without their own directive; script-src controls JavaScript and style-src controls CSS. Sources can be origins, nonces, hashes or keywords such as 'self'.

Related terms

Taught in

References