mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Plugins: Allow changing CSP by more plugins
This commit is contained in:
@@ -26,9 +26,7 @@ verifyVersion = (current, url, token) => {
|
||||
<?php
|
||||
}
|
||||
|
||||
function csp() {
|
||||
$csp = Adminer\csp();
|
||||
function csp(&$csp) {
|
||||
$csp[0]["connect-src"] .= " https://api.github.com/repos/vrana/adminer/releases/latest";
|
||||
return $csp;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user