Skip to content

Commit

Permalink
fix(FSADT1-1084): Unnecessary Http Response Headers found in the Appl…
Browse files Browse the repository at this point in the history
…ication (#690)
  • Loading branch information
mamartinezmejia authored Dec 20, 2023
1 parent 5638236 commit e366794
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/src/main/java/ca/bc/gov/app/filter/CorsWebFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ public Mono<Void> filter(ServerWebExchange ctx, WebFilterChain chain) {

headers.add("Strict-Transport-Security",
"max-age=300; includeSubDomains");

headers.remove("Server");

headers.remove("X-Powered-By");

if (CorsUtils.isPreFlightRequest(request)) {
response.setStatusCode(HttpStatus.NO_CONTENT);
Expand Down

0 comments on commit e366794

Please sign in to comment.