docs.rodeo

MDN Web Docs mirror

Permissions-Policy: document-domain

{{HTTPSidebar}}  {{SeeCompatTable}} 

The HTTP {{HTTPHeader("Permissions-Policy")}}  header document-domain directive controls whether the current document is allowed to set {{domxref("document.domain")}} .

Specifically, where a defined policy blocks use of this feature, attempting to set {{domxref("document.domain")}}  will fail and cause a SecurityError {{domxref("DOMException")}}  to be thrown.

Syntax

Permissions-Policy: document-domain=<allowlist>;

Default policy

The default allowlist for document-domain is *.

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN