Index: ChapterX.API/Program.cs
===================================================================
--- ChapterX.API/Program.cs	(revision e294f7d2cedd462a923c69ae9f85c996b5377c69)
+++ ChapterX.API/Program.cs	(revision b62cefc14094ca5ac7154f7d48797a1e6c444935)
@@ -7,4 +7,12 @@
 
 var builder = WebApplication.CreateBuilder(args);
+
+builder.Services.AddCors(options =>
+{
+    options.AddPolicy("Frontend", policy =>
+        policy.WithOrigins("http://localhost:5173", "https://localhost:5173")
+              .AllowAnyHeader()
+              .AllowAnyMethod());
+});
 
 builder.Services.AddControllers();
@@ -67,4 +75,5 @@
 
 app.UseHttpsRedirection();
+app.UseCors("Frontend");
 app.UseAuthentication();
 app.UseAuthorization();
