增加跨域白名单
This commit is contained in:
parent
aea2abbed5
commit
0f54d26bd5
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user