Stop calling the env function in naughty places

This commit is contained in:
Graham Campbell
2015-11-21 22:43:06 +00:00
parent 0e6ac90f7b
commit 236d52714d
6 changed files with 2 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ class ConfigServiceProvider extends ServiceProvider
$allowedOrigins[] = $domain;
}
} else {
$allowedOrigins[] = env('APP_URL');
$allowedOrigins[] = $this->app->config->get('app.url');
}
$this->app->config->set('cors.paths.api/v1/*.allowedOrigins', $allowedOrigins);