mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-27 07:49:27 +00:00
Improved API auth failure error
message
This commit is contained in:
parent
4bbe967e2e
commit
040750d11c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user