forked from AcaMate/AcaMate_API
[👷🏻] 채팅(Base) 수정 3차
Signed-off-by: seonkyu.kim <sean.kk@daum.net>
This commit is contained in:
parent
ab045e6eb8
commit
c58373488d
10
Program.cs
10
Program.cs
|
@ -80,11 +80,11 @@ builder.Services.AddCors(option =>
|
|||
option.AddPolicy("CorsPolicy", builder =>
|
||||
{
|
||||
builder
|
||||
// .AllowAnyOrigin()
|
||||
.WithOrigins("https://devacamate.ipstein.myds.me", "https://acamate.ipstein.myds.me") // 특정 도메인만 허용
|
||||
.AllowAnyMethod()
|
||||
.AllowAnyHeader()
|
||||
.AllowCredentials()
|
||||
.SetIsOriginAllowed(host => true);
|
||||
.AllowCredentials();
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -107,12 +107,14 @@ else
|
|||
}
|
||||
|
||||
|
||||
// app.UseHttpsRedirection();
|
||||
app.UseHttpsRedirection();
|
||||
app.UseAuthorization();
|
||||
|
||||
app.MapControllers();
|
||||
|
||||
|
||||
app.UseCors("CorsPolicy");
|
||||
|
||||
app.UseRouting();
|
||||
|
||||
app.UseWebSockets();
|
||||
|
|
Loading…
Reference in New Issue
Block a user