main
Yasen Pramatarov 2025-02-17 18:51:39 +02:00
parent 363fbf2a6b
commit 2da13af04c
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ class SecurityHelper {
public static function getInstance() {
if (self::$instance === null) {
self::$instance = new Security();
self::$instance = new SecurityHelper();
}
return self::$instance;
}

View File

@ -32,9 +32,9 @@ if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') {
$csp = [
"default-src 'self'",
"script-src 'self' 'unsafe-inline' 'unsafe-eval'", // Required for Bootstrap and jQuery
"style-src 'self' 'unsafe-inline'", // Required for Bootstrap
"style-src 'self' 'unsafe-inline' https://use.fontawesome.com", // Allow FontAwesome CSS
"img-src 'self' data:", // Allow data: URLs for images
"font-src 'self'",
"font-src 'self' https://use.fontawesome.com", // Allow FontAwesome fonts
"connect-src 'self'",
"frame-ancestors 'none'", // Equivalent to X-Frame-Options: DENY
"form-action 'self'",