Skip to content

Commit

Permalink
Merge pull request #24 from dof-dss/Cors
Browse files Browse the repository at this point in the history
Added auth and Cors
  • Loading branch information
MichaelStevenson2207 authored Sep 14, 2021
2 parents 1bd9116 + 582ba56 commit 0c85739
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion de-institutions-api/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,13 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IService
app.UseHttpsRedirection();

app.UseRouting();

app.UseAuthentication();
app.UseAuthorization();

app.UseCors(builder => builder
.AllowAnyMethod()
.AllowAnyHeader());

app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
Expand Down

0 comments on commit 0c85739

Please sign in to comment.