summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2021-07-08 17:43:51 +0100
committerDavid T. Sadler <davidtsadler@googlemail.com>2021-07-08 17:43:51 +0100
commitef36a72e7d0735cb299fdf69e63614c48a855bfa (patch)
tree208acd3720165a36ebf34ec867ce573733dce29a /includes
parent5f58f7e509a07219a30cc8a831f2e5d1bcd83a10 (diff)
Allow cors in bookmarklet
Diffstat (limited to 'includes')
-rw-r--r--includes/functions.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/functions.php b/includes/functions.php
index 0118807..7146795 100644
--- a/includes/functions.php
+++ b/includes/functions.php
@@ -8,6 +8,7 @@ function respondAndExit(int $responseCode, string $header, array $headers = []):
header($header);
}
+ header("Access-Control-Allow-Origin: *");
header('Content-Type: text/plain; charset=UTF-8');
exit();