mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-23 22:09:29 +00:00
Access control origin fix
This commit is contained in:
parent
a82b65f18d
commit
71e3d06209
@ -41,7 +41,7 @@ if(!$cs->tokens->checkClientRequestTokens())
|
|||||||
if(defined("APIServiceDomain")){
|
if(defined("APIServiceDomain")){
|
||||||
|
|
||||||
//First, limit requests
|
//First, limit requests
|
||||||
header("Access-Control-Allow-Origin: ".APIServiceDomain);
|
header("Access-Control-Allow-Origin: http://".APIServiceDomain.", https://".APIServiceDomain);
|
||||||
|
|
||||||
//Then check for referer
|
//Then check for referer
|
||||||
if(!isset($_SERVER["HTTP_REFERER"]))
|
if(!isset($_SERVER["HTTP_REFERER"]))
|
||||||
|
Loading…
Reference in New Issue
Block a user