Skip to content

Commit

Permalink
Merge pull request #116 from varianter/variantdash/update_dash_cors_p…
Browse files Browse the repository at this point in the history
…olicy

Update dashCorsPolicy to also include the development enviroment.
  • Loading branch information
jonasbrunvoll authored Nov 8, 2023
2 parents d0252dc + 3bd713e commit 2d5a5ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Web/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
policy =>
{
policy.AllowAnyMethod().AllowAnyHeader()
.WithOrigins("https://dash.variant.no", "http://localhost:3000");
.WithOrigins("https://dash.variant.no", "https://variantdash-dev.azurewebsites.net", "http://localhost:3000");
});
}
else
Expand All @@ -47,7 +47,7 @@
options.AddPolicy("DashCorsPolicy",
policy =>
{
policy.AllowAnyMethod().AllowAnyHeader().WithOrigins("https://dash.variant.no");
policy.AllowAnyMethod().AllowAnyHeader().WithOrigins("https://dash.variant.no", "https://variantdash-dev.azurewebsites.net");
});
}
}
Expand Down Expand Up @@ -252,4 +252,4 @@ namespace Web
public partial class Program
{
}
}
}

0 comments on commit 2d5a5ae

Please sign in to comment.