diff options
author | TrueKuehli <rctcoaster2000@hotmail.de> | 2018-09-29 21:52:45 +0200 |
---|---|---|
committer | TrueKuehli <rctcoaster2000@hotmail.de> | 2018-09-29 21:52:45 +0200 |
commit | f97f25ea54a0f888d2195d6868346854a2a005e0 (patch) | |
tree | 5ea9327de1d548a341f55ff4f13b89e09fb6b443 /DSACore/Startup.cs | |
parent | 330c49947c82d3d66f65f03abcad75d57d3dc121 (diff) | |
parent | 33dc613fffad69c1c608e21eac6fcd3f2954ead8 (diff) |
Merge branch 'WebApi' of https://github.com/TrueDoctor/DiscoBot into WebApi
Diffstat (limited to 'DSACore/Startup.cs')
-rw-r--r-- | DSACore/Startup.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/DSACore/Startup.cs b/DSACore/Startup.cs index c189436..11c5607 100644 --- a/DSACore/Startup.cs +++ b/DSACore/Startup.cs @@ -29,7 +29,7 @@ namespace DSACore services.AddCors(options => options.AddPolicy("CorsPolicy", builder => { - builder.WithOrigins("https://dsa.truekuehli.de") + builder.AllowAnyOrigin()//.WithOrigins("https://dsa.truekuehli.de", "127.0.0.1") .WithHeaders("Access-Control-Allow-Origin") .AllowAnyHeader() .AllowAnyMethod() @@ -51,7 +51,7 @@ namespace DSACore // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { - if (env.IsDevelopment()) + if (env.IsDevelopment()||true) { app.UseDeveloperExceptionPage(); } |