Compare commits

...

2 Commits

Author SHA1 Message Date
4d41eed18d Merge pull request '[👷🏻] 채팅(Base) 수정 3차' (#23) from seonkyu.kim/AcaMate_API:main into debug
All checks were successful
Back/pipeline/head This commit looks good
Reviewed-on: https://git.ipstein.myds.me/AcaMate/AcaMate_API/pulls/23
2025-02-17 14:45:39 +00:00
c58373488d [👷🏻] 채팅(Base) 수정 3차
Signed-off-by: seonkyu.kim <sean.kk@daum.net>
2025-02-17 23:43:41 +09:00

View File

@ -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();