2017-09-24 4 views

Antwort

0

gelöst!

solved! // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. 
    public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) 
    { 
     app.UseMiddleware(typeof(ErrorHandlingMiddleware)); 
     app.UseCors(b => b.AllowAnyHeader().WithExposedHeaders("Authorization").AllowAnyMethod().AllowAnyOrigin().AllowCredentials()); 
     app.UseMvc(); 

    } 

hinzufügen .WithExposedHeaders ("Authorization")

thx

Verwandte Themen