From 77c529d2124cb10bc12a8d6829cda45cb1a09299 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Sat, 24 Nov 2018 15:22:03 +0100 Subject: [PATCH] fix: a typo in Access-Control-Allow-Methods --- src/utils/daemon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/daemon.js b/src/utils/daemon.js index 01ac4198b..3f4bc59db 100644 --- a/src/utils/daemon.js +++ b/src/utils/daemon.js @@ -61,7 +61,7 @@ export default async function createDaemon (opts) { if (!origins.includes('https://webui.ipfs.io')) origins.push('https://webui.ipfs.io') await ipfsd.api.config.set('API.HTTPHeaders.Access-Control-Allow-Origin', origins) - await ipfsd.api.config.set('API.HTTPHeaders.Access-Control-Allow-Method', ['PUT', 'GET', 'POST']) + await ipfsd.api.config.set('API.HTTPHeaders.Access-Control-Allow-Methods', ['PUT', 'GET', 'POST']) return ipfsd }