From ef36a72e7d0735cb299fdf69e63614c48a855bfa Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Thu, 8 Jul 2021 17:43:51 +0100 Subject: Allow cors in bookmarklet --- includes/functions.php | 1 + 1 file changed, 1 insertion(+) (limited to 'includes/functions.php') 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(); -- cgit v1.2.3-13-gbd6f