mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-12-25 04:58:59 +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")){
|
||||
|
||||
//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"]))
|
||||
|
Loading…
Reference in New Issue
Block a user