mesos / chronos

Fault tolerant job scheduler for Mesos which handles dependencies and ISO8601 based schedules
http://mesos.github.io/chronos/
Apache License 2.0
4.39k stars 529 forks source link

Mesos Chronos: Not able to add response headers #895

Open selvam-rhce opened 5 years ago

selvam-rhce commented 5 years ago

Hi All,

Chronos Version : 2.5.0

We are using mesos chronos 2.5.0 on production,

We are trying to add a response header for Chronos Web UI requests.

eg: I have added response.addHeader(“X-FRAME-OPTIONS”, “DENY”); into CorsFilter.scala

But it only works for /scheduler/ requests. i want the same for / requests too.

I looked into mesosphere.chaos.http package and found the assets(index.html) are served from DefaultServelet ( correct me if I'm wrong )

It would be better if anyone show me the way to add response headers for all requests.