diff --git a/src/membership-service/Controllers/MembershipController.cs b/src/membership-service/Controllers/MembershipController.cs
index 41d31f1c..771306d9 100644
--- a/src/membership-service/Controllers/MembershipController.cs
+++ b/src/membership-service/Controllers/MembershipController.cs
@@ -1,3 +1,19 @@
+//
+// Copyright 2024 Dynatrace LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
using System;
using System.Data;
using System.Net;
@@ -36,7 +52,6 @@ public async Task GetMembershipStatus(string userid)
string selectQuery = "SELECT membership FROM membership WHERE userid = " + userid;
-
_logger.LogInformation($"Executing query: {selectQuery}");
using (var selectCmd = new MySqlCommand(selectQuery, connection))
@@ -91,7 +106,6 @@ public async Task SetMembershipStatus(string userid, [FromForm(Na
string query = "INSERT INTO membership (userid, membership) VALUES (" + userid + ",\"" + membership + "\") ON DUPLICATE KEY UPDATE membership = \"" + membership + "\"";
-
_logger.LogInformation($"Executing query: {query}");
diff --git a/src/membership-service/Program.cs b/src/membership-service/Program.cs
index f261363e..d818a397 100644
--- a/src/membership-service/Program.cs
+++ b/src/membership-service/Program.cs
@@ -1,3 +1,19 @@
+//
+// Copyright 2024 Dynatrace LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
using System;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
diff --git a/src/membership-service/README.md b/src/membership-service/README.md
index d852cf58..7644641e 100644
--- a/src/membership-service/README.md
+++ b/src/membership-service/README.md
@@ -65,7 +65,7 @@ Returns the current membership of the requested user ID.
#### POST /membership-service/add/{userid}
-Update the user membership by providing it as simple form params to the post request:
+Update the user membership by providing it as simple form parameter to the post request:
```
membership={membershipText}
diff --git a/src/membership-service/Startup.cs b/src/membership-service/Startup.cs
index cc45bfca..57b857c9 100644
--- a/src/membership-service/Startup.cs
+++ b/src/membership-service/Startup.cs
@@ -1,3 +1,19 @@
+//
+// Copyright 2024 Dynatrace LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
@@ -38,8 +54,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
app.UseRouting();
- app.UseCors("AllowOrigin");
-
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();