File "csp-sandbox.inc.php"

Full Path: /home/fahu5438/labouseuse.fr/wp-content/plugins/http-headers/views/includes/csp-sandbox.inc.php
File size: 931 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
$sandbox = array(
    'allow-forms', 
    'allow-same-origin', 
    'allow-scripts', 
    'allow-popups',
    'allow-modals', 
    'allow-downloads',
    'allow-orientation-lock', 
    'allow-pointer-lock', 
    'allow-presentation',
    'allow-popups-to-escape-sandbox', 
    'allow-top-navigation',
    'allow-top-navigation-by-user-activation',
);
foreach ($sandbox as $origin)
{
    ?>
    <p>
        <input type="checkbox" 
        	name="hh_content_security_policy_value[<?php echo $item; ?>][<?php echo $origin; ?>]" 
        	id="csp-<?php echo $item; ?>-<?php echo $origin; ?>" 
        	value="1"<?php echo isset($csp_value[$item][$origin]) ? ' checked' : NULL; ?>
        	class="http-header-value"<?php echo $content_security_policy == 1 ? NULL : ' readonly'; ?>>
    	<label for="csp-<?php echo $item; ?>-<?php echo $origin; ?>"><?php echo $origin; ?></label>
    </p>
    <?php
}
?>