for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
/**
* @license http://opensource.org/licenses/mit-license.php MIT
* @link https://github.com/nicoSWD
* @author Nicolas Oelgart <[email protected]>
*/
namespace nicoSWD\SecHeaderCheck\Domain\Header;
final class SecurityHeader
{
public const CONTENT_SECURITY_POLICY = 'content-security-policy';
public const EXPECT_CT = 'expect-ct';
public const REFERRER_POLICY = 'referrer-policy';
public const SET_COOKIE = 'set-cookie';
public const SERVER = 'server';
public const STRICT_TRANSPORT_SECURITY = 'strict-transport-security';
public const X_FRAME_OPTIONS = 'x-frame-options';
public const X_CONTENT_TYPE_OPTIONS = 'x-content-type-options';
public const X_POWERED_BY = 'x-powered-by';
public const X_XSS_PROTECTION = 'x-xss-protection';
public function all(): array
return (new \ReflectionClass($this))->getConstants();
}