mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-18 16:18:04 +00:00
Improved API auth failure error
message
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user