public function sendStandardHeaders(string $mimeType)
{
$state = State::instance();
\header('Content-Type: ' . $mimeType);
\header('Content-Language: ' . $state->lang);
\header('X-Content-Type-Options: nosniff');
\header('X-Frame-Options: SAMEORIGIN');
// Maybe make this configurable down the line?
\header('X-XSS-Protection: 1; mode=block');
if (isset($state->HPKP) && $state->HPKP instanceof HPKPBuilder) {
$state->HPKP->sendHPKPHeader();
}
if (isset($state->CSP) && $state->CSP instanceof CSPBuilder) {
$state->CSP->sendCSPHeader();
}
}