Hi,
my current Confluence 5.8.15 / TomCat 8 instance seems to add a "X-Frame-Options: SAMEORIGIN" header to all responses. How can I disable or modify this behavior? (please no security discussion )
Hi,
behavior seems to be related with the option:
antiClickJackingEnabled
c.f.
https://tomcat.apache.org/tomcat-8.0-doc/config/filter.html
Because I didn't want to change the default configuration, I rewrote my plugin to use JSONP instead of been loaded within an iframe.
Same issue over here! Since we upgraded to Confluence 5.8.16 we experience an issue that all iFrame integrations do not work anymore. Additionally, we had multiple issues with the new sameorigin policy since we use a Tivoli Access Manager in front of our Tomcat.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jens, just saw on https://jira.atlassian.com/browse/CONF-29230 and from the source in SecurityHeadersInterceptor.java that -Dconfluence.clickjacking.protection.disable=true might help. Please try that, i haven't checked it yet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We had this setting enabled on Confluence 5.8.16 which worked fine. Now, on Confluence 5.8.18 it does not work anymore. I could not find any information on this on the release notes of Confluence, which is very bad :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We are also experiencing this issue since upgrading Confluence to 5.8.18 and need to find a way for at least one space within our Confluence instance to be able to be viewed through an iframe. Have either of you had any more luck with this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Carol!
While we were able to resolve this on Conf 5.8.16 by adding a parameter to JAVA_OPTS on setenv.sh, we had to add this to CATALINA_OPTS on Conf 5.8.18. See:
#Click jacking protection disable CATALINA_OPTS="${CATALINA_OPTS} -Dconfluence.clickjacking.protection.disable=true"
So, if you add this to setenv.sh, iframes will work again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your quick reply, extremely appreciated! This pointed me in exactly the direction I needed!
In case others need this, here's what I had to do since we are running on Windows using a Windows Service.
Open setting properties for Windows Services via Command Line (an example of how to do this is listed within the link below – remember we are now using tomcat8 instead of 7 when entering the command):
Within the Java Options, add the below line:
-Dconfluence.clickjacking.protection.disable=true
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
An alternate (to Java Options), if you have a web server in front of Tomcat, you can remove these two headers. e.g. in Apache/mod_headers/mod_jk kind of setup to connect Apache to Tomcat add following
<VirtualHost *:80>
ServerName yourconfluence.yourdomain.com
JkMount /* wconfl
Header unset X-Frame-Options
Header unset Content-Security-Policy
</VirtualHost>
Header unset should work in other places as well in apache config file, I guess.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ajay,
can you please explain what exactly the line “JkMount /* wconfl” is doing?
So far as I know “wconfl” is a worker for tomcat, right?
How is the file “workers.properties” defined, then?
Thanks loxlay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.