mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-06-12 22:11:54 +00:00
fixed cors
This commit is contained in:
@@ -17,11 +17,11 @@ builder.Services.AddCors(options =>
|
||||
options.AddPolicy(name: allowSpecificOrigins,
|
||||
policy =>
|
||||
{
|
||||
policy.WithOrigins("barkdev.ts.drewr.io","localhost:5145");
|
||||
policy.WithOrigins("barkdev.ts.drewr.io","localhost:5145", "localhost:5173");
|
||||
});
|
||||
});
|
||||
var app = builder.Build();
|
||||
if (app.Environment.IsProduction())
|
||||
if (! app.Environment.IsProduction())
|
||||
{
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI(c =>
|
||||
|
||||
Reference in New Issue
Block a user