Skip to content

Instantly share code, notes, and snippets.

@ayeshN
Last active May 10, 2020 12:48
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/9c18a005294dc75e4efbc3d405d55e61 to your computer and use it in GitHub Desktop.
Save ayeshN/9c18a005294dc75e4efbc3d405d55e61 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