CrossOriginResourcePolicy.value()

Set the header value.

Usage

Source

CrossOriginResourcePolicy.value(value)

This is the preferred “escape hatch” API. For known CORP directives, the stored value is canonicalized to the standard lowercase token.

Parameters

value

Typically one of same-origin, same-site, or cross-origin. Other values are accepted as-is (after trimming), but are not described by MDN.

Returns

The CrossOriginResourcePolicy instance for method chaining.

Raises

ValueError

if the value contains CR/LF characters.