From e61b055512cc2ab98c8cc6ce47662380980b06e2 Mon Sep 17 00:00:00 2001 From: SysAdmin Date: Wed, 1 Oct 2025 03:22:40 +0100 Subject: [PATCH] Fix CORS policy for admin.dark.side domain MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add https://admin.dark.side and http://admin.dark.side to ProductionCors allowed origins - Increment version to 1.0.6 - Fixes push notification CORS blocking issue 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- LittleShop/LittleShop.csproj | 2 +- LittleShop/Program.cs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/LittleShop/LittleShop.csproj b/LittleShop/LittleShop.csproj index 2853bfe..c0e8017 100644 --- a/LittleShop/LittleShop.csproj +++ b/LittleShop/LittleShop.csproj @@ -5,7 +5,7 @@ enable enable b96bedcb-5d39-4d41-98c0-72355dd49c1b - 1.0.5 + 1.0.6 1.0.5.0 1.0.5.0 diff --git a/LittleShop/Program.cs b/LittleShop/Program.cs index 3e13bfe..8adb643 100644 --- a/LittleShop/Program.cs +++ b/LittleShop/Program.cs @@ -288,7 +288,11 @@ builder.Services.AddCors(options => corsBuilder => { var allowedOrigins = builder.Configuration.GetSection("CORS:AllowedOrigins").Get() - ?? new[] { "https://littleshop.silverlabs.uk" }; + ?? new[] { + "https://littleshop.silverlabs.uk", + "https://admin.dark.side", + "http://admin.dark.side" + }; corsBuilder.WithOrigins(allowedOrigins) .AllowAnyMethod()