# http-headers/1.14.2/views/includes/csp-sri.inc.php

HTTP Headers, version 1.14.2. 20 lines.

- Page: https://pluginprobe.com/plugins/http-headers/1.14.2/code/views/includes/csp-sri.inc.php
- Raw: https://pluginprobe.com/plugins/http-headers/1.14.2/raw/views/includes/csp-sri.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.14.2/code/views/includes/csp-sri.inc.php#L10-L20`.

```php
<?php
$origins = array(
    'script',
    'style',
);

foreach ($origins 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
}
?>
```
