# http-headers/1.13.3/views/includes/csp-sandbox.inc.php

HTTP Headers, version 1.13.3. 27 lines.

- Page: https://pluginprobe.com/plugins/http-headers/1.13.3/code/views/includes/csp-sandbox.inc.php
- Raw: https://pluginprobe.com/plugins/http-headers/1.13.3/raw/views/includes/csp-sandbox.inc.php
- Modified: 2019-04-07T05:09:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/http-headers/1.13.3/code/views/includes/csp-sandbox.inc.php#L10-L20`.

```php
<?php
$sandbox = array(
    'allow-forms', 
    'allow-same-origin', 
    'allow-scripts', 
    'allow-popups',
    'allow-modals', 
    'allow-orientation-lock', 
    'allow-pointer-lock', 
    'allow-presentation',
    'allow-popups-to-escape-sandbox', 
    'allow-top-navigation',
);
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
}
?>
```
