header('X-Akaunting', 'Online Accounting Software'); $response->header('X-Content-Type-Options', 'nosniff'); $response->header('X-Frame-Options', 'SAMEORIGIN'); if (! $response->headers->has('Referrer-Policy')) { $response->header('Referrer-Policy', 'strict-origin-when-cross-origin'); } $response->header('X-XSS-Protection', '0'); $response->header('Permissions-Policy', 'camera=(), microphone=(), geolocation=()'); if ($request->routeIs('login.dingtalk', 'login.dingtalk.callback', 'business.store-account-passwords.reveal', 'business.store-account-passwords.reveal-visible-page')) { $response->header('Cache-Control', 'no-store'); $response->header('Pragma', 'no-cache'); $response->header('Referrer-Policy', 'no-referrer'); } } return $response; } }