2017-09-24 96 views

回答

0

解决!

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(); 

    } 

添加.WithExposedHeaders( “授权”)

THX