diff options
Diffstat (limited to 'apps/dashboard/lib/Controller/DashboardController.php')
-rw-r--r-- | apps/dashboard/lib/Controller/DashboardController.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/dashboard/lib/Controller/DashboardController.php b/apps/dashboard/lib/Controller/DashboardController.php index 40ed026b82b..8f845ca9b6a 100644 --- a/apps/dashboard/lib/Controller/DashboardController.php +++ b/apps/dashboard/lib/Controller/DashboardController.php @@ -111,7 +111,14 @@ class DashboardController extends Controller { $this->inititalStateService->provideInitialState('dashboard', 'version', $this->config->getUserValue($this->userId, 'dashboard', 'backgroundVersion', 0)); $this->config->setUserValue($this->userId, 'dashboard', 'firstRun', '0'); - return new TemplateResponse('dashboard', 'index'); + $response = new TemplateResponse('dashboard', 'index'); + + // For the weather widget we should allow the geolocation + $featurePolicy = new Http\FeaturePolicy(); + $featurePolicy->addAllowedGeoLocationDomain('\'self\''); + $response->setFeaturePolicy($featurePolicy); + + return $response; } /** |