diff --git a/system/src/Grav/Common/GPM/Response.php b/system/src/Grav/Common/GPM/Response.php index b2852e6a8..a84082257 100644 --- a/system/src/Grav/Common/GPM/Response.php +++ b/system/src/Grav/Common/GPM/Response.php @@ -57,7 +57,7 @@ class Response } $config = Grav::instance()['config']; - $referer = Grav::instance()['uri']->rootUrl(true); + $referer = \defined('GRAV_CLI') ? 'grav_cli' : Grav::instance()['uri']->rootUrl(true); $options = new HttpOptions(); // Set default Headers