1 min readApr 29, 2020
Thanks for this article — it finally demonstrates how to remove the Server header from Cowboy responses, which is something many users of Phoenix would like to do.
You should, however, make it more clear where to modify the Phoenix configuration. Here is what my configuration ultimately looked like:
config :my_app, MyAppWeb.Endpoint,
http: [port: 4000, stream_handlers: [:cowboy_compress_h, MyApp.Plugs.StripHeaderHandler, :cowboy_stream_h]],
secret_key_base: "XXXXXXXXXXX",
debug_errors: true,
code_reloader: true,
check_origin: false,
watchers: []
Also, you have a broken link for “extremely simple” which should link to Phoenix 1.4.