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 =>
|
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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user