Skip to content

Commit

Permalink
[DJ] [Gitar] Updating TypeScript files
Browse files Browse the repository at this point in the history
  • Loading branch information
Gitar committed Sep 18, 2024
1 parent 14ff13f commit 898d4db
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/lib/middleware/secure-headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,6 @@ const secureHeaders: (config: IUnleashConfig) => RequestHandler = (config) => {
return (req, res, next) => {
if (req.method === 'OPTIONS') {
return next();
} else if (
req.path.startsWith(`${config.server.baseUriPath}/api/`) &&
config.flagResolver.isEnabled('stripHeadersOnAPI')
) {
apiHelmet(req, res, next);
} else {
defaultHelmet(req, res, next);
}
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 898d4db

Please sign in to comment.