app.UseStaticFiles(new StaticFileOptions { OnPrepareResponse = (c) => { c.Context.Response.Headers.Add("Access-Control-Allow-Origin", "*"); } });
标签:Control,core,跨域,文件,静态,net From: https://www.cnblogs.com/adenwei/p/17417024.html
app.UseStaticFiles(new StaticFileOptions { OnPrepareResponse = (c) => { c.Context.Response.Headers.Add("Access-Control-Allow-Origin", "*"); } });
标签:Control,core,跨域,文件,静态,net From: https://www.cnblogs.com/adenwei/p/17417024.html