zhaopeiym / quartzui

基于Quartz.NET3.0的定时任务Web可视化管理。docker打包开箱即用、内置SQLite持久化、语言无关、业务代码零污染、支持 RESTful风格接口、傻瓜式配置
MIT License
1.52k stars 418 forks source link

app.UseCors("AllowSameDomain") 位置错误 #37

Closed zjc-china closed 3 years ago

zjc-china commented 4 years ago

app.UseRouting(); app.UseAuthorization(); app.UseCors("AllowSameDomain"); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); 如上,应该放在 app.UseRouting(); 和 UseEndpoints 之间

Ran-snow commented 4 years ago

收到

Ran-snow commented 4 years ago

app.UseCors("AllowSameDomain"); 应该在 app.UseAuthorization(); 之前

(CORS) 启用跨域请求 ASP.NET Core

zhaopeiym commented 3 years ago

收到,已修改。