:send-server-version? false to stop returning the Server details in the header of its responses. :send-date-header? false to avoid including the date of the response.
Without these settings, the server will return details in the headings:
Stop the web server and start after adding config to startup command:
(defn jetty-start
[handler opts]
(jetty/run-jetty handler (-> opts (assoc :send-server-version? false
:send-date-header? false
:join? false)))) ;; false so that we can stop it at the repl!
Now the server does not return the details all the detals
Hiding details about the web server
:send-server-version? false
to stop returning the Server details in the header of its responses. :send-date-header? false to avoid including the date of the response.Without these settings, the server will return details in the headings:
Stop the web server and start after adding config to startup command:
Now the server does not return the details all the detals