Skip to main content

PLAYER_POLICY

Constant PLAYER_POLICY 

Source
pub const PLAYER_POLICY: &str = "default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'; \
     connect-src 'none'; media-src blob:; base-uri 'none'; form-action 'none'; \
     frame-ancestors 'none'; require-trusted-types-for 'script'; trusted-types 'none'; \
     report-uri /console/csp-report";
Expand description

The policy of the player’s page: the console’s, but a recording may play from a blob made in the page (media-src blob:) and the page may make no request at all (connect-src 'none'). The console hands the player the bytes; the player fetches nothing.