diff --git a/package.json b/package.json index f68280e0..172f19a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "firecamp", - "version": "3.2.3", + "version": "3.2.4", "private": true, "description": "DX-first API devtool", "main": "packages/firecamp-desktop-app/dist/services/Main", diff --git a/playgrounds/firecamp-rest/src/store/slices/execution.slice.ts b/playgrounds/firecamp-rest/src/store/slices/execution.slice.ts index be121ae5..0e1a04ee 100644 --- a/playgrounds/firecamp-rest/src/store/slices/execution.slice.ts +++ b/playgrounds/firecamp-rest/src/store/slices/execution.slice.ts @@ -147,12 +147,16 @@ const createExecutionSlice: TStoreSlice = (set, get) => ({ }, prepareRequestForExecution: () => { - const { request, prepareAuthForExecution, prepareScriptsForExecution } = - get(); + const { + request, + runtime: { authHeaders = [] }, + prepareAuthForExecution, + prepareScriptsForExecution, + } = get(); const auth = prepareAuthForExecution(); const { preScripts, postScripts } = prepareScriptsForExecution(); return { - ...request, + ...{ ...request, headers: [...request.headers, ...authHeaders] }, // merge auth headers to main headers auth, preScripts, postScripts,