This commit is contained in:
21
src/Frontend/Action/CreateLogAction.php
Normal file
21
src/Frontend/Action/CreateLogAction.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Aternos\Mclogs\Frontend\Action;
|
||||
|
||||
use Aternos\Mclogs\Util\URL;
|
||||
|
||||
class CreateLogAction extends \Aternos\Mclogs\Api\Action\CreateLogAction
|
||||
{
|
||||
protected bool $includeCookie = true;
|
||||
protected bool $includeToken = false;
|
||||
|
||||
protected function getAllowedOrigin(): string
|
||||
{
|
||||
return URL::getBase()->toString();
|
||||
}
|
||||
|
||||
protected function shouldAllowCredentials(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user