From 040750d11c7df731fb6dca3ed9555e8439fe683d Mon Sep 17 00:00:00 2001 From: Pierre Date: Tue, 13 Jun 2017 11:02:39 +0200 Subject: [PATCH] Improved API auth failure error message --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index d8b3f67..59f0a0a 100644 --- a/index.php +++ b/index.php @@ -42,7 +42,7 @@ if(defined("APIServiceDomain")){ //Then check for referer if(!isset($_SERVER["HTTP_REFERER"])) - Rest_fatal_error(401, "Access from direct requests denied !"); + Rest_fatal_error(401, "Access from direct requests denied with this client token !"); //Check the referer if(get_url_domain($_SERVER["HTTP_REFERER"]) !== APIServiceDomain)