mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
Revert "fix: override ACAO header for read API spec file"
This reverts commit 240d90919b.
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user