This commit is contained in:
Jay 2018-08-17 23:49:50 +08:00
parent 06f237314c
commit 1f326715fd

1
app.js
View File

@ -8,6 +8,7 @@ const app = new Koa()
app.use(koaLogger())
app.use(cors({
credentials: true,
origin: (c) => {
return c.get('Origin')
}