include::../description.adoc[] include::../ask-yourself.adoc[] include::../recommended.adoc[] == Sensitive Code Example [source, java] ---- @GetMapping(value = "/example") public ResponseEntity example() { HttpHeaders responseHeaders = new HttpHeaders(); responseHeaders.set("x-powered-by", "myproduct"); // Sensitive return new ResponseEntity( "example", responseHeaders, HttpStatus.CREATED); } ---- == Compliant Solution Do not disclose version information unless necessary. The ``++x-powered-by++`` or ``++Server++`` HTTP headers should not be used. include::../see.adoc[] ifdef::env-github,rspecator-view[] ''' == Implementation Specification (visible only on this page) include::../message.adoc[] endif::env-github,rspecator-view[]