[FIXED JENKINS-21881] System property for disabling X-Frame-Options

This commit is contained in:
Daniel Beck committed 2014-09-07 18:46:49 +02:00
1 parent aa7f0a938e
commit fc78fdee9b
3 files changed
+23 -1

No files matched your search

@@ -0,0 +1,17 @@
package jenkins.security;
import hudson.Extension;
import hudson.model.PageDecorator;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;
/**
* Adds the 'X-Frame-Options' header to all web pages.
*
* @since TODO
*/
@Extension(ordinal = 1000)
public class FrameOptionsPageDecorator extends PageDecorator {
@Restricted(NoExternalUse.class)
public static boolean enabled = Boolean.valueOf(System.getProperty(FrameOptionsPageDecorator.class.getName() + ".enabled", "true"));
}