zum testen
This commit is contained in:
@@ -32,8 +32,20 @@ var options = new WebApplicationOptions
|
|||||||
// Diese Zeile setzt den WebRootPath explizit auf den wwwroot-Ordner.
|
// Diese Zeile setzt den WebRootPath explizit auf den wwwroot-Ordner.
|
||||||
WebRootPath = "wwwroot"
|
WebRootPath = "wwwroot"
|
||||||
};
|
};
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(options);
|
var builder = WebApplication.CreateBuilder(options);
|
||||||
|
|
||||||
|
builder.Services.AddCors(options =>
|
||||||
|
{
|
||||||
|
options.AddPolicy("AllowNuxtApp",
|
||||||
|
policy =>
|
||||||
|
{
|
||||||
|
policy.WithOrigins("http://localhost:3000")
|
||||||
|
.AllowAnyHeader()
|
||||||
|
.AllowAnyMethod();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
// --- 1. Dependency Injection Konfiguration ---
|
// --- 1. Dependency Injection Konfiguration ---
|
||||||
|
|
||||||
// Datenbank-Kontext mit Split-Query-Verhalten f<>r Performance-Optimierung
|
// Datenbank-Kontext mit Split-Query-Verhalten f<>r Performance-Optimierung
|
||||||
|
|||||||
Reference in New Issue
Block a user