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

View File

@@ -11,7 +11,7 @@ builder.Services.AddCors(options =>
options.AddPolicy("AllowSvelteApp",
builder =>
{
builder.WithOrigins("*")
builder.AllowAnyOrigin()
.AllowAnyHeader()
.AllowAnyMethod();
});

2
Aspnet/makefile Normal file
View File

@@ -0,0 +1,2 @@
run:
dotnet watch run