- 博客(1)
- 收藏
- 关注
转载 Eggjs-cors配置*无效
Eggjs-cors配置*无效如果你要用 origin: ‘*’ 又想带 withCredentials,配置改成这样config.cors = { credentials: true, origin: ctx => ctx.get('origin'),}如果只想让 domainWhiteList 的可以跨域,那就不用配置 origin...
2021-06-18 19:39:52
851
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人