Compare commits
2 Commits
25dd659291
...
9d882f7a55
Author | SHA1 | Date | |
---|---|---|---|
9d882f7a55 | |||
![]() |
6f06f3b39c |
|
@ -13,6 +13,7 @@ using AcaMate.V1.Controllers;
|
|||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
|
||||
// DB 설정부 시작
|
||||
builder.Configuration.AddJsonFile("private/dbSetting.json", optional: true, reloadOnChange: true);
|
||||
// var connectionString = builder.Configuration.GetConnectionString("MariaDbConnection");
|
||||
|
@ -79,6 +80,7 @@ builder.Services.AddCors(option =>
|
|||
option.AddPolicy("CorsPolicy", builder =>
|
||||
{
|
||||
builder
|
||||
.AllowAnyOrigin()
|
||||
.AllowAnyMethod()
|
||||
.AllowAnyHeader()
|
||||
.AllowCredentials()
|
||||
|
@ -105,7 +107,7 @@ else
|
|||
}
|
||||
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
// app.UseHttpsRedirection();
|
||||
app.UseAuthorization();
|
||||
|
||||
app.MapControllers();
|
||||
|
@ -116,7 +118,8 @@ app.UseRouting();
|
|||
app.UseWebSockets();
|
||||
app.UseEndpoints(end =>
|
||||
{
|
||||
app.MapHub<ChatHub>("/chatHub");
|
||||
end.MapControllers();
|
||||
end.MapHub<ChatHub>("/chatHub");
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user