Is there a configuration option for akka http to use HSTS as a default header?

I’m using Snowplow, which is built on top of akka-http, and I’m looking at options to get the server to return hsts headers.

All akka-http configuration is passed on to akka by the application, so the road of least resistance here is if I could use configuration for akka-http to serve these headers by default. Is anything like that possible?

1 Like

No config providing anything like that out of the box, you’d have to be able to wrap the HttpRequest ->HttpResponse logic or the Akka HTTP routes that Snowplow uses to be able to do that.