diff --git a/ghost/api-framework/lib/pipeline.js b/ghost/api-framework/lib/pipeline.js index c4e164cdbe..8d4a4b1e15 100644 --- a/ghost/api-framework/lib/pipeline.js +++ b/ghost/api-framework/lib/pipeline.js @@ -188,6 +188,8 @@ const pipeline = (apiController, apiUtils, apiType) => { return keys.reduce((obj, method) => { const apiImpl = _.cloneDeep(apiController)[method]; + Object.freeze(apiImpl.headers); + obj[method] = async function wrapper() { const apiConfig = {docName, method}; let options;