Compare commits
No commits in common. "4d41eed18d88bd38e675f377856f59bfea474585" and "3b3a196fbcaeecd09c11b3b3cf7512f9601de7af" have entirely different histories.
4d41eed18d
...
3b3a196fbc
10
Program.cs
10
Program.cs
|
@ -80,11 +80,11 @@ builder.Services.AddCors(option =>
|
|||
option.AddPolicy("CorsPolicy", builder =>
|
||||
{
|
||||
builder
|
||||
.WithOrigins("https://devacamate.ipstein.myds.me", "https://acamate.ipstein.myds.me") // 특정 도메인만 허용
|
||||
// .AllowAnyOrigin()
|
||||
.AllowAnyMethod()
|
||||
.AllowAnyHeader()
|
||||
.AllowCredentials();
|
||||
|
||||
.AllowCredentials()
|
||||
.SetIsOriginAllowed(host => true);
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -107,14 +107,12 @@ else
|
|||
}
|
||||
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
// app.UseHttpsRedirection();
|
||||
app.UseAuthorization();
|
||||
|
||||
app.MapControllers();
|
||||
|
||||
|
||||
app.UseCors("CorsPolicy");
|
||||
|
||||
app.UseRouting();
|
||||
|
||||
app.UseWebSockets();
|
||||
|
|
Loading…
Reference in New Issue
Block a user