Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

egg中跨域egg-cors需要设置security白名单,如果egg服务放到服务器,前端本地开发怎么通过所有的访问?

$
0
0

egg-cors的使用需要在egg-security中设置白名单, 我使用前后端分离,前段用vue,两端都在一个电脑,可以设置domainWhiteList:[‘http://localhost:8080’], 如果我要把egg后台放到服务器,那前端本地开发的话白名单怎么设置?domainWhiteList:[’*’]?


Viewing all articles
Browse latest Browse all 14821

Trending Articles