movio / bramble

A federated GraphQL API gateway
https://movio.github.io/bramble/
MIT License
497 stars 53 forks source link

Strict-Transport-Security on Bramble? #203

Closed marcosuma closed 1 year ago

marcosuma commented 1 year ago

Is it possible to set the Strict-Transport-Security header from Bramble response?

pkqk commented 1 year ago

Hi @marcosuma,

You can modify the response by wrapping the public or private mux http.Handler using a plugin. There's a few examples in the plugins folder, the best one is probably the cors example