Skip to content

Commit

Permalink
[Gitar] Cleaning up stale flag: stripHeadersOnAPI with value true (#8457
Browse files Browse the repository at this point in the history
)

[![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 <[email protected]>
  • Loading branch information
gitar-bot[bot] and Gitar authored Oct 16, 2024
1 parent 2cac903 commit 6d2b882
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions src/lib/middleware/secure-headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion src/lib/types/experimental.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export type IFlagKey =
| 'advancedPlayground'
| 'filterInvalidClientMetrics'
| 'disableMetrics'
| 'stripHeadersOnAPI'
| 'signals'
| 'automatedActions'
| 'celebrateUnleash'
Expand Down
1 change: 0 additions & 1 deletion src/server-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ process.nextTick(async () => {
embedProxyFrontend: true,
anonymiseEventLog: false,
responseTimeWithAppNameKillSwitch: false,
stripHeadersOnAPI: true,
celebrateUnleash: true,
featureSearchFeedbackPosting: true,
userAccessUIEnabled: true,
Expand Down

0 comments on commit 6d2b882

Please sign in to comment.