summaryrefslogtreecommitdiff
path: root/pages/api/computer.php
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-03-15 22:40:55 +0100
committerRaindropsSys <contact@minteck.org>2023-03-15 22:40:55 +0100
commit940defd2939f52480ed5b548189b549457944995 (patch)
tree7ca52eca3c3fcafe507dc24b4e2812ab785acc29 /pages/api/computer.php
parenteb89b15c0f044673c1206a418a21d0baba1a675e (diff)
downloadpluralconnect-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.php3
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;