diff --git a/src/Client.php b/src/Client.php index d81bea9..b6c5ad6 100644 --- a/src/Client.php +++ b/src/Client.php @@ -261,10 +261,14 @@ private function installJsErrorReporting() : void } }'; } + if (!isset($options['whitelistUrls'])) { + $options['whitelistUrls'] = $_SERVER["HTTP_HOST"]; + } + $options = CJavaScript::encode($options); $clientScript->registerScript( - 'sentry-javascript-init', + 'sentry-javascript-init-raven', "Raven.config('{$this->jsDsn}', {$options}).install();", CClientScript::POS_HEAD );