Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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