Document directive

Czytasz angielską wersję tego artykułu, ponieważ nie ma jeszcze tłumaczenia dla tego języka. Pomóż nam przetłumaczyć ten artykuł!

CSP document directives are used in a Content-Security-Policy header and govern the properties of a document or worker environment to which a policy applies.

Document directives don't fall back to the default-src directive.

List of CSP document directives

base-uri
Restricts the URLs which can be used in a document's <base> element.
plugin-types
Restricts the set of plugins that can be embedded into a document by limiting the types of resources which can be loaded.
sandbox
Enables a sandbox for the requested resource similar to the <iframe> sandbox attribute.
disown-opener
Ensures a resource will disown its opener when navigated to.