summaryrefslogtreecommitdiff
path: root/DSACore/Startup.cs
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-09-27 20:03:01 +0200
committerTrueDoctor <d-kobert@web.de>2018-09-27 20:03:01 +0200
commitf38bd807a30550613340cba254380646f53f1ef4 (patch)
tree05cb1dde7368ca61851d65897e618d6e51aa5e87 /DSACore/Startup.cs
parent09b0c5be9e23247411da850497b9cc6519d8f155 (diff)
reconfigured for https
Diffstat (limited to 'DSACore/Startup.cs')
-rw-r--r--DSACore/Startup.cs11
1 files changed, 0 insertions, 11 deletions
diff --git a/DSACore/Startup.cs b/DSACore/Startup.cs
index efbd7b1..2d0c2a3 100644
--- a/DSACore/Startup.cs
+++ b/DSACore/Startup.cs
@@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
-using DSACore.Hubs;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
@@ -26,15 +25,7 @@ namespace DSACore
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
- services.AddCors(options =>
- {
- options.AddPolicy("AllowSpecificOrigin",
- builder => builder.WithOrigins("https://console.firebase.google.com/project/heldenonline-4d828"));
- });
-
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
-
- services.AddSignalR();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
@@ -50,8 +41,6 @@ namespace DSACore
}
app.UseHttpsRedirection();
- app.UseSignalR(routes => { routes.MapHub<ChatHub>("/chatHub"); });
- app.UseCors("AllowSpecificOrigin");
app.UseMvc();
}
}