georchestra / georchestra-gateway

GNU General Public License v3.0
0 stars 5 forks source link

Allow official `sec-` headers to the final application. #103

Open edevosc2c opened 6 months ago

edevosc2c commented 6 months ago

The gateway is removing all the sec- headers before passing them to the final application: https://github.com/georchestra/georchestra-gateway/blob/main/gateway/src/main/java/org/georchestra/gateway/filter/headers/RemoveSecurityHeadersGatewayFilterFactory.java#L50

This may not be desired because there are many official sec- headers useful for the applications, here is a list from MDN: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Dest

I think we should modify the regex and whitelist the official sec- headers.