diff --git a/backend/Program.cs b/backend/Program.cs index a18403d..c88ca0e 100644 --- a/backend/Program.cs +++ b/backend/Program.cs @@ -20,7 +20,10 @@ if (app.Environment.IsDevelopment()) app.UseSwaggerUI(); } -app.UseCors(builder => builder.WithOrigins("*")); +app.UseCors(builder => { + builder.WithOrigins("http://localhost:5173"); + builder.AllowCredentials(); +}); //app.UseHttpsRedirection(); diff --git a/frontend/index.html b/frontend/index.html index 99f583a..78a0808 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -4,7 +4,7 @@ -