diff --git a/src/controllers/open/games.js b/src/controllers/open/games.js index e7dce9e..17f7367 100644 --- a/src/controllers/open/games.js +++ b/src/controllers/open/games.js @@ -9,7 +9,7 @@ import {platform} from 'os' const router = new Router() -const whitelist = ['http://promotion.kingsome.cn'] +const whitelist = ['https://promotion.kingsome.cn'] const corsOptions = { origin: function(origin, callback) { if (whitelist.indexOf(origin) !== -1) { diff --git a/src/controllers/open/promotion.js b/src/controllers/open/promotion.js index 030770b..98a8b10 100644 --- a/src/controllers/open/promotion.js +++ b/src/controllers/open/promotion.js @@ -7,7 +7,7 @@ import cors from 'cors' const router = new Router() -const whitelist = ['http://promotion.kingsome.cn'] +const whitelist = ['https://promotion.kingsome.cn'] const corsOptions = { origin: function(origin, callback) { if (whitelist.indexOf(origin) !== -1) {