1
0
Fork 0
mirror of synced 2024-06-29 03:30:34 +12:00

Updated docs

This commit is contained in:
Eldad Fux 2020-01-29 12:49:18 +02:00
parent 268e60118c
commit e243d5ef71

View file

@ -82,6 +82,7 @@ $utopia->init(function () use ($utopia, $request, $response, &$user, $project, $
/*
* Validate Client Domain - Check to avoid CSRF attack
* Adding Appwrite API domains to allow XDOMAIN communication
* Skip this check for non-web platforms which are not requiredto send an origin header
*/
$hostValidator = new Host($clients);
$origin = $request->getServer('HTTP_ORIGIN', $request->getServer('HTTP_REFERER', ''));