summaryrefslogtreecommitdiff
path: root/pages/api/computer.php
diff options
context:
space:
mode:
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;