mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 02:54:28 +02:00
Add Content Security Policy
This commit is contained in:
@@ -91,6 +91,7 @@ function page_headers() {
|
|||||||
header("X-XSS-Protection: 0"); // prevents introducing XSS in IE8 by removing safe parts of the page
|
header("X-XSS-Protection: 0"); // prevents introducing XSS in IE8 by removing safe parts of the page
|
||||||
header("X-Content-Type-Options: nosniff");
|
header("X-Content-Type-Options: nosniff");
|
||||||
header("Referrer-Policy: origin-when-cross-origin");
|
header("Referrer-Policy: origin-when-cross-origin");
|
||||||
|
header("Content-Security-Policy: default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; connect-src 'self'; img-src 'self'; frame-src https://www.adminer.org; form-action 'self'");
|
||||||
$adminer->headers();
|
$adminer->headers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
Adminer 4.3.2-dev:
|
Adminer 4.3.2-dev:
|
||||||
|
Add Content Security Policy
|
||||||
Add nosniff header
|
Add nosniff header
|
||||||
PHP 7.1: Prevent warning when using empty limit
|
PHP 7.1: Prevent warning when using empty limit
|
||||||
MySQL: Remove dedicated view for replication status (added in 4.3.0)
|
MySQL: Remove dedicated view for replication status (added in 4.3.0)
|
||||||
|
Reference in New Issue
Block a user