From bbc2a8d80baa15e01ea5a5a307f937445405cbce Mon Sep 17 00:00:00 2001 From: Leonard Goodell Date: Thu, 20 Jul 2023 11:48:18 -0700 Subject: [PATCH] fix: Update Copy right and added call to ConfigureCors() Signed-off-by: Leonard Goodell --- internal/app/service.go | 2 ++ internal/webserver/server.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/app/service.go b/internal/app/service.go index 66fa00d1a..9296b591e 100644 --- a/internal/app/service.go +++ b/internal/app/service.go @@ -569,6 +569,8 @@ func (svc *Service) Initialize() error { NewConfigUpdateProcessor(svc).WaitForConfigUpdates(configUpdated) svc.webserver = webserver.NewWebServer(svc.dic, mux.NewRouter(), svc.serviceKey) + svc.webserver.ConfigureCors() + svc.lc.Info("Service started in: " + startupTimer.SinceAsString()) return nil diff --git a/internal/webserver/server.go b/internal/webserver/server.go index f4f60fdee..fd1258589 100644 --- a/internal/webserver/server.go +++ b/internal/webserver/server.go @@ -1,5 +1,5 @@ // -// Copyright (c) 2021 Intel Corporation +// Copyright (c) 2023 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.