diff options
author | RaindropsSys <contact@minteck.org> | 2023-03-15 22:40:55 +0100 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-03-15 22:40:55 +0100 |
commit | 940defd2939f52480ed5b548189b549457944995 (patch) | |
tree | 7ca52eca3c3fcafe507dc24b4e2812ab785acc29 /pages/api/computer.php | |
parent | eb89b15c0f044673c1206a418a21d0baba1a675e (diff) | |
download | pluralconnect-940defd2939f52480ed5b548189b549457944995.tar.gz pluralconnect-940defd2939f52480ed5b548189b549457944995.tar.bz2 pluralconnect-940defd2939f52480ed5b548189b549457944995.zip |
Updated 14 files (automated)
Diffstat (limited to 'pages/api/computer.php')
-rw-r--r-- | pages/api/computer.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pages/api/computer.php b/pages/api/computer.php index 8261fa8..a9b87ae 100644 --- a/pages/api/computer.php +++ b/pages/api/computer.php @@ -1,7 +1,8 @@ <?php if (isset($_GET["chrome"])) { - header("Access-Control-Allow-Origin: chrome-extension://klenhenmabddpffgdaijdkjmfkkafbno"); + header("Access-Control-Allow-Origin: chrome-extension://" . preg_replace("/[^a-z]/m", "", $_GET["chrome"])); + header("Access-Control-Allow-Credentials: true"); } require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/session.inc"; global $isLoggedIn; global $_PROFILE; |