Skip to content

Commit

Permalink
cors orgin string[]
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Aug 16, 2024
1 parent e44c65a commit 3df5819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/custom/MyConfigServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static IServiceCollection AddCustomCors(this IServiceCollection services,
options.AddPolicy("AllowSpecificOrigins",
builder =>
{
builder.WithOrigins(corsOriginsString)
builder.WithOrigins(corsOrigins)
.AllowAnyHeader()
.AllowAnyMethod()
.AllowCredentials()
Expand Down

0 comments on commit 3df5819

Please sign in to comment.