Skip to content

Commit

Permalink
feat: front can request to backend
Browse files Browse the repository at this point in the history
  • Loading branch information
msm1984 committed Aug 27, 2024
1 parent 8a83939 commit 2880f1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Web/Startup/ServiceExtensions.Cors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ public static void AddCorsPolicy(this IServiceCollection services)
{
options.AddPolicy("AllowSpecificOrigins", corsPolicyBuilder =>
{
corsPolicyBuilder.WithOrigins("http://localhost:4200")
corsPolicyBuilder.WithOrigins(
"http://localhost:4200",
"http://external.abriment.com:30081"
)
.AllowAnyHeader()
.AllowAnyMethod()
.AllowCredentials();
Expand Down

0 comments on commit 2880f1f

Please sign in to comment.