diff --git a/Shared.Kernel.Demo/Program.cs b/Shared.Kernel.Demo/Program.cs
index bc5ca2d..7b58ee8 100644
--- a/Shared.Kernel.Demo/Program.cs
+++ b/Shared.Kernel.Demo/Program.cs
@@ -25,7 +25,7 @@
.AddControllers(AssemblyRegistry.ToArray())
.AddMediatrWithBehaviors(AssemblyRegistry.ToArray())
.AddResilienceDefaultPipeline()
- // .AddRedis(KeyPrefix.AssemblyNamePrefix)
+ // .AddRedis(KeyPrefix.AssemblyNamePrefix)
//.AddDistributedSignalR("DistributedSignalR") // or .AddSignalR()
.MapDefaultTimeZone()
.AddCors()
diff --git a/src/SharedKernel/Extensions/HttpContextExtensions.cs b/src/SharedKernel/Extensions/HttpContextExtensions.cs
new file mode 100644
index 0000000..380303d
--- /dev/null
+++ b/src/SharedKernel/Extensions/HttpContextExtensions.cs
@@ -0,0 +1,21 @@
+using Microsoft.AspNetCore.Http;
+
+namespace SharedKernel.Extensions;
+
+public static class HttpContextExtensions
+{
+ public static void MarkAsPrivateEndpoint(this HttpContext context)
+ {
+ context.Response.Headers.Append("X-Private-Endpoint", "1");
+ }
+
+ public static void MarkAsPrivateEndpoint(this HttpResponse response)
+ {
+ response.Headers.Append("X-Private-Endpoint", "1");
+ }
+
+ public static void MarkAsPrivateEndpoint(this HttpContextAccessor contextAccessor)
+ {
+ contextAccessor.HttpContext?.Response.Headers.Append("X-Private-Endpoint", "1");
+ }
+}
\ No newline at end of file
diff --git a/src/SharedKernel/SharedKernel.csproj b/src/SharedKernel/SharedKernel.csproj
index d4a7192..2535d87 100644
--- a/src/SharedKernel/SharedKernel.csproj
+++ b/src/SharedKernel/SharedKernel.csproj
@@ -8,7 +8,7 @@