增加跨域白名单

This commit is contained in:
yulixing 2019-09-19 10:37:49 +08:00
parent aea2abbed5
commit 0f54d26bd5

View File

@ -9,7 +9,7 @@ import {platform} from 'os'
const router = new Router()
const whitelist = ['http://promotion.kingsome.cn']
const whitelist = ['http://promotion.kingsome.cn', 'http://promotion-test.kingsome.cn']
const corsOptions = {
origin: function(origin, callback) {
if (whitelist.indexOf(origin) !== -1) {