mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
[Gitar] Cleaning up stale flag: stripHeadersOnAPI with value true (#8457)
[![Gitar](https://raw.githubusercontent.com/gitarcode/.github/main/assets/gitar-banner.svg)](https://gitar.co) --- This automated PR was generated by [Gitar](https://gitar.co). View [docs](https://gitar.co/docs). Co-authored-by: Gitar <noreply@gitar.co>
This commit is contained in:
parent
2cac903068
commit
6d2b882eb8
@ -126,8 +126,7 @@ const secureHeaders: (config: IUnleashConfig) => RequestHandler = (config) => {
|
||||
if (req.method === 'OPTIONS') {
|
||||
return next();
|
||||
} else if (
|
||||
req.path.startsWith(`${config.server.baseUriPath}/api/`) &&
|
||||
config.flagResolver.isEnabled('stripHeadersOnAPI')
|
||||
req.path.startsWith(`${config.server.baseUriPath}/api/`)
|
||||
) {
|
||||
apiHelmet(req, res, next);
|
||||
} else {
|
||||
|
@ -25,7 +25,6 @@ export type IFlagKey =
|
||||
| 'advancedPlayground'
|
||||
| 'filterInvalidClientMetrics'
|
||||
| 'disableMetrics'
|
||||
| 'stripHeadersOnAPI'
|
||||
| 'signals'
|
||||
| 'automatedActions'
|
||||
| 'celebrateUnleash'
|
||||
|
@ -40,7 +40,6 @@ process.nextTick(async () => {
|
||||
embedProxyFrontend: true,
|
||||
anonymiseEventLog: false,
|
||||
responseTimeWithAppNameKillSwitch: false,
|
||||
stripHeadersOnAPI: true,
|
||||
celebrateUnleash: true,
|
||||
featureSearchFeedbackPosting: true,
|
||||
userAccessUIEnabled: true,
|
||||
|
Loading…
Reference in New Issue
Block a user