<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1284 Appian sets HTTP Strict Transport Security flag unexpectedly after configuring Spring Security</title><link>https://community.appian.com/support/w/kb/495/kb-1284-appian-sets-http-strict-transport-security-flag-unexpectedly-after-configuring-spring-security</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1284 Appian sets HTTP Strict Transport Security flag unexpectedly after configuring Spring Security</title><link>https://community.appian.com/support/w/kb/495/kb-1284-appian-sets-http-strict-transport-security-flag-unexpectedly-after-configuring-spring-security</link><pubDate>Tue, 07 Mar 2017 16:01:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2b164253-952b-4514-a649-267412ba9cfb</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/495/kb-1284-appian-sets-http-strict-transport-security-flag-unexpectedly-after-configuring-spring-security#comments</comments><description>Current Revision posted to Appian Knowledge Base by Nick Vigilante on 3/7/2017 4:01:38 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;After configuring custom Spring Security, Appian introduces the HTTP Strict Transport Security flag in the response header. This causes all requests to other applications, running the same hostname to use HTTPS. This is not a problem if the other applications are configured to use HTTPS. However, if the other applications are configured to use HTTP instead of HTTPS, then this flag will prevent the user from accessing these sites.&lt;/p&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This is most likely caused due incorrect merging of Spring Security files in Appian. Since Appian 7.11, two Spring Security files disable the Spring Security Header:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/conf/security/spring-security-05-web-api.xml&lt;/code&gt; Line 41: &lt;code&gt;&amp;lt;sec:headers disabled=&amp;quot;true&amp;quot;/&amp;gt;&lt;/code&gt; Line 61: &lt;code&gt;&amp;lt;sec:headers disabled=&amp;quot;true&amp;quot;/&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/web.war/WEB-INF/conf/security/spring-security-07-portal.xml&lt;/code&gt;&lt;br /&gt;Line 35: &lt;code&gt;&amp;lt;sec:headers disabled=&amp;quot;true&amp;quot;/&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The absence of these lines may be causing the issue.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Compare the out of the box Spring Security files and add the missing lines to respective override files.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to Appian 7.11 and later.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;March 2017&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: administration, authentication&lt;/div&gt;
</description></item></channel></rss>