Subscribe to RSS
Fri. Feb 23rd, 2024

Tag: carbon fiber repair

// X-Content-Type-Options: nosniff function add_x_content_type_options_header() { header('X-Content-Type-Options: nosniff'); } add_action('send_headers', 'add_x_content_type_options_header'); // Cross-Origin-Resource-Policy: same-origin function add_cross_origin_resource_policy_header($headers) { $headers['Cross-Origin-Resource-Policy'] = 'same-origin'; return $headers; } add_filter('wp_headers', 'add_cross_origin_resource_policy_header'); // Cross-Origin-Opener-Policy: same-origin-allow-popups function add_cross_origin_opener_policy_header($headers) { $headers['Cross-Origin-Opener-Policy'] = 'same-origin-allow-popups'; return $headers; } add_filter('wp_headers', 'add_cross_origin_opener_policy_header'); // Strict-Transport-Security: max-age=31536000 function add_strict_transport_security_header($headers) { $headers['Strict-Transport-Security'] = 'max-age=31536000'; return $headers; } add_filter('wp_headers', 'add_strict_transport_security_header');
Translate »