Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] X-FRAME Header option

Hi all,

We embed Jetty with our application, I would like to know how I could tell
the Jetty server to include the X-FRAME option in all responses to the
client. Would this piece of code do the trick?

import org.eclipse.jetty.server.Server

Server server = new Server();
server.setAttribute("X-Frame-Options", "SAMEORIGIN");



Back to the top