• 使用路由过滤器实现跨域访问 routers router go 的init方法中添加过滤器 beego InsertFilter beego BeforeRouter cors Allow cors Options 允许访问所有源 Allo