From 71e3d06209fe84402902c42c6f676a27cdfc7db2 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sat, 1 Jul 2017 10:41:46 +0200 Subject: [PATCH] Access control origin fix --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 4d13cec..34cdb1a 100644 --- a/index.php +++ b/index.php @@ -41,7 +41,7 @@ if(!$cs->tokens->checkClientRequestTokens()) if(defined("APIServiceDomain")){ //First, limit requests - header("Access-Control-Allow-Origin: ".APIServiceDomain); + header("Access-Control-Allow-Origin: http://".APIServiceDomain.", https://".APIServiceDomain); //Then check for referer if(!isset($_SERVER["HTTP_REFERER"]))