I have enabled CORS using following:
services.AddCors(options => { options.AddPolicy(this.CorsPolicy, builder => { builder.WithOrigins(t