vaadin8 - Preventing Clickjacking attack by Vaadin -


i want prevent clickjacking attack in vaadin 7 , 8 apps. vaadin applications default designed embeddable, configuration or code needed add safety.

here's first experiment, adds x-frame-options header each response force browser use same origin policy.

public class myvaadinservlet extends vaadinservlet {    @override   protected void service(httpservletrequest request,       httpservletresponse response) throws servletexception, ioexception {          // add clickjacking prevention         response.addheader("x-frame-options", "sameorigin");          super.service(request, response);   }  } 

i'd know if there better solutions vaadin apps, existing vaadin configuration options don't know or if implementation has drawbacks or limitations.

we have apache in front of our application, don't know if brittle add header manipulation there instead of having inside app (where can tested , changed developers).


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -