You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is response where i am getting server details
HTTP/1.1 200 OK
Date: Mon, 20 Mar 2023 09:52:37 GMT
Access-Control-Allow-Methods: GET,POST,OPTIONS
Access-Control-Allow-Headers: Pragma,Content-Type,cache-control,x-authorization,X-Requested-With,Content-Length,Accept,Origin
Access-Control-Max-Age: 86400
Access-Control-Allow-Private-Network: true
Content-Type: text/html;charset=utf-8
Transfer-Encoding: chunked Server: Jetty(9.4.48.v20220622)
this is same as #331
I have verified in latest version this is still visible on response header.
The text was updated successfully, but these errors were encountered:
I am using this sample code
public static void main(String[] args)
{
port(1150);
ipAddress("127.0.0.1");
enableCORS();
get("/hello",Main::registration);
{
before((request, response) -> {
response.raw().setHeader("Server"," "); // Is this a Proper ?
});
}
Can we use any other solution to remove server details in the response header ?
@perwendelsony
This is response where i am getting server details
HTTP/1.1 200 OK
Date: Mon, 20 Mar 2023 09:52:37 GMT
Access-Control-Allow-Methods: GET,POST,OPTIONS
Access-Control-Allow-Headers: Pragma,Content-Type,cache-control,x-authorization,X-Requested-With,Content-Length,Accept,Origin
Access-Control-Max-Age: 86400
Access-Control-Allow-Private-Network: true
Content-Type: text/html;charset=utf-8
Transfer-Encoding: chunked
Server: Jetty(9.4.48.v20220622)
this is same as #331
I have verified in latest version this is still visible on response header.
The text was updated successfully, but these errors were encountered: