-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
Description
Personally, I'd like to chain my settings, so instead of this:
// init SecureHeaders
$headers = new SecureHeaders;
$headers->auto();
$headers->hsts();
$headers->csp([
'default-src' => [
'none'
],
'script-src' => [
'self'
],
'style-src' => [
'self',
'https://fonts.googleapis.com'
],
'img-src' => [
'https://www.gravatar.com'
]
]);
$headers->apply();I could do
// init SecureHeaders
$headers = new SecureHeaders;
$headers
->auto()
->hsts()
->csp([
'default-src' => [
'none'
],
'script-src' => [
'self'
],
'style-src' => [
'self',
'https://fonts.googleapis.com'
],
'img-src' => [
'https://www.gravatar.com'
]
])
->apply();Reactions are currently unavailable