File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/server/configs/opensource Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 88 DL_CONTEXT_HEADER ,
99 Language ,
1010 PALETTE_ID ,
11+ US_DYNAMIC_MASTER_TOKEN_HEADER ,
12+ US_MASTER_TOKEN_HEADER ,
1113 isTrueArg ,
1214} from '../../../shared' ;
1315import { UserRole } from '../../../shared/components/auth/constants/role' ;
@@ -19,6 +21,13 @@ import controlDashChartTemplate from '../shared/control-dash-chart-template';
1921import datalensChartTemplate from '../shared/datalens-chart-template' ;
2022import qlChartTemplate from '../shared/ql-chart-template' ;
2123
24+ const sensitiveHeaders = [
25+ CSP_HEADER ,
26+ CSP_REPORT_TO_HEADER ,
27+ US_DYNAMIC_MASTER_TOKEN_HEADER ,
28+ US_MASTER_TOKEN_HEADER ,
29+ ] ;
30+
2231export default {
2332 // DATALENS MODE
2433 serviceName : SERVICE_NAME_DATALENS ,
@@ -213,8 +222,8 @@ export default {
213222 } ,
214223 defaultColorPaletteId : PALETTE_ID . DEFAULT_20 ,
215224
216- appSensitiveKeys : [ CSP_HEADER , CSP_REPORT_TO_HEADER ] ,
217- appSensitiveHeaders : [ CSP_HEADER , CSP_REPORT_TO_HEADER ] ,
225+ appSensitiveKeys : sensitiveHeaders ,
226+ appSensitiveHeaders : sensitiveHeaders ,
218227
219228 // auth
220229 isAuthEnabled : isTrueArg ( process . env . AUTH_ENABLED ) ,
You can’t perform that action at this time.
0 commit comments