Skip to content

Instantly share code, notes, and snippets.

@ayeshN
Created May 10, 2020 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayeshN/6f532a6103467385f4c224f65392bc43 to your computer and use it in GitHub Desktop.
Save ayeshN/6f532a6103467385f4c224f65392bc43 to your computer and use it in GitHub Desktop.
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddCors(options =>
{
options.AddPolicy(
"CorsPolicy",
builder => builder.AllowAnyOrigin()
.AllowAnyMethod()
.AllowAnyHeader());
});
services.AddScoped<IUserManager, UserManager>();
services.Configure<B2CUserSettings>(this.Configuration.GetSection("B2C"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment