mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-14 04:22:16 +00:00
[FIXED JENKINS-21881] System property for disabling X-Frame-Options
This commit is contained in:
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"));
|
||||
}
|
||||
Reference in new issue
Block a user