mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
debug platforms
This commit is contained in:
parent
066008293d
commit
37087c37ca
1 changed files with 4 additions and 0 deletions
|
|
@ -533,6 +533,10 @@ $server->onOpen(function (int $connection, SwooleRequest $request) use ($server,
|
|||
* Skip this check for non-web platforms which are not required to send an origin header.
|
||||
*/
|
||||
$origin = $request->getOrigin();
|
||||
var_dump([
|
||||
'platforms '=> $console->getAttribute('platforms', [])
|
||||
]);
|
||||
|
||||
$originValidator = new Origin(array_merge($project->getAttribute('platforms', []), $console->getAttribute('platforms', [])));
|
||||
|
||||
if (!$originValidator->isValid($origin) && $project->getId() !== 'console') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue