Defaultsrc
Default-src is a directive in Content Security Policy (CSP) that sets a default rule for loading resources. It serves as a fallback for all resource types that do not have their own explicit directive, such as script-src, img-src, or style-src.
The value of default-src is a source list. This list can include 'self' to refer to the
Interaction with other directives: If a resource type has a more specific directive, that directive takes precedence
Practical considerations: Using a restrictive default-src helps reduce exposure to cross-origin attacks and data exfiltration, but
Policy deployment: The directive is delivered via the Content-Security-Policy header or a meta tag. An example