PURT DAT KOOKEE DAOWN, NAOW!!!
This commit is contained in:
@@ -10,7 +10,6 @@ using System.Net;
|
||||
|
||||
var MyAllowSpecificOrigins = "_myAllowSpecificOrigins";
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
// Add services to the container.
|
||||
|
||||
builder.Services.AddCors(options => {
|
||||
options.AddPolicy(name: MyAllowSpecificOrigins,
|
||||
@@ -18,7 +17,8 @@ builder.Services.AddCors(options => {
|
||||
policy.WithOrigins("http://localhost:3000",
|
||||
"http://localhost:3001")
|
||||
.AllowAnyMethod()
|
||||
.AllowAnyHeader();
|
||||
.AllowAnyHeader()
|
||||
.AllowCredentials();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -57,9 +57,6 @@ builder.Services.AddDbContextFactory<InventoryContext>(options => { options.UseS
|
||||
builder.Services.AddSingleton<DatabaseCacheService>();
|
||||
builder.Services.BuildServiceProvider().GetRequiredService<DatabaseCacheService>();
|
||||
|
||||
|
||||
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
|
Reference in New Issue
Block a user