[👷🏻] 채팅(Base) 수정 3차

Signed-off-by: seonkyu.kim <sean.kk@daum.net>
This commit is contained in:
김선규 2025-02-17 23:43:41 +09:00
parent ab045e6eb8
commit c58373488d

View File

@ -80,11 +80,11 @@ builder.Services.AddCors(option =>
option.AddPolicy("CorsPolicy", builder => option.AddPolicy("CorsPolicy", builder =>
{ {
builder builder
// .AllowAnyOrigin() .WithOrigins("https://devacamate.ipstein.myds.me", "https://acamate.ipstein.myds.me") // 특정 도메인만 허용
.AllowAnyMethod() .AllowAnyMethod()
.AllowAnyHeader() .AllowAnyHeader()
.AllowCredentials() .AllowCredentials();
.SetIsOriginAllowed(host => true);
}); });
}); });
@ -107,12 +107,14 @@ else
} }
// app.UseHttpsRedirection(); app.UseHttpsRedirection();
app.UseAuthorization(); app.UseAuthorization();
app.MapControllers(); app.MapControllers();
app.UseCors("CorsPolicy"); app.UseCors("CorsPolicy");
app.UseRouting(); app.UseRouting();
app.UseWebSockets(); app.UseWebSockets();