From e195a5260bd12bd57391b1abd458127ef73a46d5 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Thu, 17 Oct 2019 12:40:29 -0400 Subject: [PATCH] Allowing access to the API from any domain. Necessary to make api.beestat.io work. --- api/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/index.php b/api/index.php index 8ab68d6..2c499d0 100644 --- a/api/index.php +++ b/api/index.php @@ -8,6 +8,9 @@ * @author Jon Ziebell */ +// Allow access to the API from any domain. +header('Access-Control-Allow-Origin: *'); + // Compress output. ob_start('ob_gzhandler');