diff --git a/src/server/api/index.ts b/src/server/api/index.ts index 23203d914..c39911c35 100644 --- a/src/server/api/index.ts +++ b/src/server/api/index.ts @@ -14,7 +14,11 @@ const handler = require('./api-handler').default; // Init app const app = new Koa(); -app.use(cors()); + +app.use(cors({ + origin: '*' +})); + app.use(bodyParser({ // リクエストが multipart/form-data でない限りはJSONだと見なす detectJSON: ctx => !ctx.is('multipart/form-data')