From 88fa56e1bd8c7fd1f7861a854eafbb3e3515e821 Mon Sep 17 00:00:00 2001 From: Ifedapo Olarewaju Date: Mon, 29 Jul 2019 12:28:09 +0100 Subject: [PATCH] companion: set allowed http methods internally --- packages/@uppy/companion/src/companion.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/@uppy/companion/src/companion.js b/packages/@uppy/companion/src/companion.js index cea4352a13..5f697b60d0 100644 --- a/packages/@uppy/companion/src/companion.js +++ b/packages/@uppy/companion/src/companion.js @@ -62,6 +62,7 @@ module.exports.app = (options = {}) => { app.use(interceptGrantErrorResponse) app.use(new Grant(grantConfig)) app.use((req, res, next) => { + res.header('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, DELETE') res.header( 'Access-Control-Allow-Headers', [