Fix CORS policy for admin.dark.side domain
- 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 <noreply@anthropic.com>
This commit is contained in:
parent
5e90b86d8c
commit
e61b055512
@ -5,7 +5,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<UserSecretsId>b96bedcb-5d39-4d41-98c0-72355dd49c1b</UserSecretsId>
|
||||
<Version>1.0.5</Version>
|
||||
<Version>1.0.6</Version>
|
||||
<AssemblyVersion>1.0.5.0</AssemblyVersion>
|
||||
<FileVersion>1.0.5.0</FileVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
@ -288,7 +288,11 @@ builder.Services.AddCors(options =>
|
||||
corsBuilder =>
|
||||
{
|
||||
var allowedOrigins = builder.Configuration.GetSection("CORS:AllowedOrigins").Get<string[]>()
|
||||
?? new[] { "https://littleshop.silverlabs.uk" };
|
||||
?? new[] {
|
||||
"https://littleshop.silverlabs.uk",
|
||||
"https://admin.dark.side",
|
||||
"http://admin.dark.side"
|
||||
};
|
||||
|
||||
corsBuilder.WithOrigins(allowedOrigins)
|
||||
.AllowAnyMethod()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user