1
0
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:
Jakub Vrana
2025-03-31 20:20:09 +02:00
parent 595c228175
commit 9f3f3b9515
5 changed files with 9 additions and 9 deletions

View File

@@ -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;
}
}