Enabled CORS

This commit is contained in:
Marcus Ferl 2023-07-09 13:13:31 +02:00
parent 26de83bc8a
commit d3f93dbaaf

View File

@ -21,6 +21,13 @@ app.UseHttpsRedirection();
app.UseAuthorization(); app.UseAuthorization();
app.UseCors(builder =>
{
builder.AllowAnyOrigin()
.AllowAnyMethod()
.AllowAnyHeader();
});
app.MapControllers(); app.MapControllers();
//app.Run("http://192.168.0.57:3045"); //Linux Server //app.Run("http://192.168.0.57:3045"); //Linux Server