From c82a263788d32f0bd7e739713f732f7ddedb7862 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 3 Apr 2020 12:41:52 -0400 Subject: [PATCH] Revert "fix: override ACAO header for read API spec file" This reverts commit 240d90919b95af92cc1d4ce2f53ddb759c6363bd. --- src/routes/index.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/routes/index.js b/src/routes/index.js index 8c1ed9ba24..fcab003624 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -149,11 +149,6 @@ function addCoreRoutes(app, router, middleware) { ]; var staticOptions = { maxAge: app.enabled('cache') ? 5184000000 : 0, - setHeaders: (res, filePath) => { - if (filePath === path.resolve(nconf.get('upload_path'), '../openapi/read.yaml')) { - res.set('Access-Control-Allow-Origin', '*'); - } - }, }; if (path.resolve(__dirname, '../../public/uploads') !== nconf.get('upload_path')) {