fix: añadido cors

Signed-off-by: fede <federico.nicolas.polidoro@gmail.com>
This commit is contained in:
2024-10-19 18:00:44 -03:00
parent 13ea698572
commit ed3d87ec92
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ builder.Services.AddCors(options =>
options.AddPolicy("AllowSvelteApp", options.AddPolicy("AllowSvelteApp",
builder => builder =>
{ {
builder.WithOrigins("*") builder.AllowAnyOrigin()
.AllowAnyHeader() .AllowAnyHeader()
.AllowAnyMethod(); .AllowAnyMethod();
}); });
+2
View File
@@ -0,0 +1,2 @@
run:
dotnet watch run