<?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-1011 401 error thrown when attempting to access Appian after configuring a web server</title><link>https://community.appian.com/support/w/kb/237/kb-1011-401-error-thrown-when-attempting-to-access-appian-after-configuring-a-web-server</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1011 401 error thrown when attempting to access Appian after configuring a web server</title><link>https://community.appian.com/support/w/kb/237/kb-1011-401-error-thrown-when-attempting-to-access-appian-after-configuring-a-web-server</link><pubDate>Thu, 06 Jan 2022 22:27:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c5aa63af-88be-4120-9c4f-3645fcd22d2e</guid><dc:creator>Elly Meng</dc:creator><comments>https://community.appian.com/support/w/kb/237/kb-1011-401-error-thrown-when-attempting-to-access-appian-after-configuring-a-web-server#comments</comments><description>Current Revision posted to Appian Knowledge Base by Elly Meng on 1/6/2022 10:27:36 PM&lt;br /&gt;
&lt;h2 class="name"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When attempting to access Appian with a web server configured, users receive a 401 error like the one below:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " border="0" height="226" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/401URL.jpg" width="372" /&gt;&lt;/p&gt;
&lt;p&gt;The following error is seen in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;ERROR com.appiancorp.security.cors.CorsFilter - CORS request rejected; invalid request from &amp;lt;SOURCE_IP_ADDRESS&amp;gt; to &amp;lt;URL&amp;gt;&lt;br /&gt;javax.servlet.ServletException: CORS origin denied: &amp;lt;URL&amp;gt; is not on the allowed list:[] or the request path does not match the allowed paths.&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;Additionally, users who can login may be unable to load or open objects in &lt;code&gt;/design&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;There is a misconfiguration in&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;related to the site URL.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Ensure the&amp;nbsp;&lt;span&gt;&lt;code&gt;conf.suite.SCHEME&lt;/code&gt; property in&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;matches the appropriate&amp;nbsp;scheme users are using to access the site. I.e., HTTPS if SSL is configured on the web server and HTTP if it is not.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Ensure the&amp;nbsp;&lt;span&gt;&lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt; property in &lt;strong&gt;custom.properties&amp;nbsp;&lt;/strong&gt;matches the computer&amp;rsquo;s hostname and includes a port &lt;strong&gt;only&amp;nbsp;&lt;/strong&gt;if the default port is not being used, which is 80 for HTTP and 443 for HTTPS. These default ports are assumed based on the value&lt;/span&gt;&amp;nbsp;of&amp;nbsp;&lt;code&gt;conf.suite.SCHEME&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="action"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian using a web server.&lt;/p&gt;
&lt;p&gt;Last Reviewed: January 2022&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: web browser, administration, third-party, web server&lt;/div&gt;
</description></item><item><title>KB-1011 "CORS origin denied &lt;host&gt; not on allowed list" error thrown when attempting to access Appian through a web server</title><link>https://community.appian.com/support/w/kb/237/kb-1011-401-error-thrown-when-attempting-to-access-appian-after-configuring-a-web-server/revision/1</link><pubDate>Thu, 09 Feb 2017 22:58:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c5aa63af-88be-4120-9c4f-3645fcd22d2e</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/237/kb-1011-401-error-thrown-when-attempting-to-access-appian-after-configuring-a-web-server#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Nick Vigilante on 2/9/2017 10:58:12 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When attempting to access Appian, users may sometimes find their site or parts of their site not working due to rejected Cross Origin Resource Sharing (CORS) requests. When using Apache web server configured with SSL and JBoss, users may be shown a 401 error page whenever attempting to log in to their Appian site on Chrome. In some scenarios, popups may not show when attempting to open objects in the Designer interface (&lt;em&gt;/designer&lt;/em&gt;). CORS requests can also be rejected if the SAML authentication is enabled but IdP is not added to the Appian CORS origin list.&lt;/p&gt;
&lt;p&gt;Relevant errors found in the application server log following the main error are given below:&lt;/p&gt;
&lt;pre&gt;INFO  [stdout] (ajp-/0.0.0.0:8009-1) javax.servlet.ServletException: CORS origin denied mycomputer.mydomain.com not on allowed list:[]
INFO  [stdout] (ajp-/0.0.0.0:8009-1)   at com.appiancorp.security.cors.CorsFilter.handleNormalRequest(CorsFilter.java:258)
INFO  [stdout] (ajp-/0.0.0.0:8009-1)   at com.appiancorp.security.cors.CorsFilter.doFilter(CorsFilter.java:249)
&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;Each web browser has its own implementation and security layer. At some point in the normal operation of the browser at which the context/domain changes, Chrome will detect the change as a security issue and will fail to display content. Other browsers do not have constraints as strict as this although any CORS enabled browser is capable of throwing this error given the appropriate conditions.&lt;/p&gt;
&lt;p&gt;For more information about CORS, refer to &lt;a href="http://docs.telerik.com/kendo-ui/framework/datasource/cors"&gt;Telerik&amp;#39;s article on CORS&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;CORS request rejections most commonly occur due to improper configuration of the &lt;strong&gt;custom.properties&lt;/strong&gt; file and CORS origins.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Check the &lt;strong&gt;custom.properties&lt;/strong&gt; file and make sure the &lt;code&gt;conf.suite.SCHEME&lt;/code&gt; line matches the appropriate scheme (HTTP if not using SSL/HTTPS if using SSL) and the &lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt; line matches the computer&amp;rsquo;s hostname and includes a port if not using port 80 for HTTP or port 443 for HTTPS. &lt;br /&gt;&lt;strong&gt;Note:&lt;/strong&gt; Do not add port 80 or port 443 to &lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt; as the port number is assumed to be either 80 or 443 based on the value of &lt;code&gt;conf.suite.SCHEME&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Make sure all relevant origins are added to the Appian CORS origin list and any web server used must be configured to handle CORS requests.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: February 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: web browser, embedded interfaces, administration, third-party&lt;/div&gt;
</description></item></channel></rss>