add funny icon and fix connection issues

This commit is contained in:
Alexandertp 2023-12-15 13:31:30 +01:00
parent 839cbe5463
commit c104ef8a53
3 changed files with 5 additions and 2 deletions

View File

@ -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();

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
<title>M&M's Dispenser</title>
</head>
<body>
<div id="app"></div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 160 KiB