diff --git a/Weiferl.Api/Program.cs b/Weiferl.Api/Program.cs index 6e820fc..c8d267d 100644 --- a/Weiferl.Api/Program.cs +++ b/Weiferl.Api/Program.cs @@ -21,6 +21,13 @@ app.UseHttpsRedirection(); app.UseAuthorization(); +app.UseCors(builder => +{ + builder.AllowAnyOrigin() + .AllowAnyMethod() + .AllowAnyHeader(); +}); + app.MapControllers(); //app.Run("http://192.168.0.57:3045"); //Linux Server