a2l007 commented on issue #10580:
URL: https://github.com/apache/druid/issues/10580#issuecomment-730421070


   @sajithms05 No that won't help. Core druid doesn't support adding custom 
headers via runtime.properties file. I was suggesting to add the header via a 
custom extension. If you have a custom druid security extension, you could add 
a filter that adds this security header. Something like this:
   
   ```public class SecureFilter implements Filter
   {
   @Override
     public void doFilter(
         ServletRequest servletRequest, ServletResponse servletResponse, 
FilterChain filterChain
     )
     {
        servletResponse.addHeader("X-Frame-Options", "SAMEORIGIN");
        filterChain.doFilter(servletRequest, servletResponse);
    }
   }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to