-
Notifications
You must be signed in to change notification settings - Fork 21
safeModeException
Aidan Woods edited this page Jul 16, 2017
·
2 revisions
void safeModeException ( string $name )Used to add an exception to ->safeMode.
Specify the name of the header that you wish to be exempt from
->safeMode warnings and auto-modification.
(Note that if you want to turn safe mode off for all headers, use
->safeMode(false) – safe mode is not on by default).
If you would like to enable safe mode and allow full use of the HSTS header, but still protect against accidental misuse of the HPKP header, the following would work.
$headers->hsts();
$headers->safeMode();
$headers->safeModeException('strict-transport-security');