<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Qlik Sense Server logoutUri has different domain (B) than the source of request (A) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Server-logoutUri-has-different-domain-B-than-the/m-p/1514145#M36652</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Getting the exact same issue as you've described. Has anyone managed to find a way around this? Or anywhere where it can be fixed in config?&lt;/P&gt;</description>
    <pubDate>Thu, 29 Nov 2018 10:48:40 GMT</pubDate>
    <dc:creator>MattCooper</dc:creator>
    <dc:date>2018-11-29T10:48:40Z</dc:date>
    <item>
      <title>Qlik Sense Server logoutUri has different domain (B) than the source of request (A)</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Server-logoutUri-has-different-domain-B-than-the/m-p/1240138#M24589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have Qlik Sense Server hosted behind a 3rd party Proxy.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;That Proxy is accessible at URL domain "A"&lt;/LI&gt;&lt;LI&gt;That Proxy passes on the requests to Qlik Sense server which is actually being served&amp;nbsp; from URL domain "B"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the user should never have access to "B" directly -- the user shouldn't be aware that "B" exists at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All Qlik sense requests work correctly, going from my client at origin "A" , to the domain "A", and responses come back successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then it the hub's getUserInfo function sends a request to:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;/qps/user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifically the getUserInfo sends &lt;STRONG&gt;request&lt;/STRONG&gt; to:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;/qps/user?targetUri=https:%2F%2F&lt;STRONG&gt;A&lt;/STRONG&gt;%2Fhub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the &lt;STRONG&gt;response&lt;/STRONG&gt; comes back:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"userDirectory": "...",&lt;/P&gt;&lt;P&gt;"userId": "...",&lt;/P&gt;&lt;P&gt;"userName": "...",&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"logoutUri": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN style="color: #ff0000; text-decoration: underline;"&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/SPAN&gt;/qps/user"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So then in the hub/core/services/comm/authentication initialization,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it sets a.logoutUri = &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN style="color: #ff0000; text-decoration: underline;"&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/SPAN&gt;/qps/user&lt;/P&gt;&lt;P&gt;Why is inconsistent domain, now "B"? Shouldn't Qlik Sense server respond with logoutUri set to domain &lt;STRONG&gt;A&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After all this, when I attempt to logout, &lt;SPAN style="font-size: 13.3333px;"&gt;my browser &lt;/SPAN&gt;sends a DELETE request &lt;STRONG&gt;to&lt;/STRONG&gt; domain &lt;SPAN style="color: #ff0000; text-decoration: underline;"&gt;&lt;STRONG&gt;B,&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;from&lt;/STRONG&gt; domain &lt;STRONG&gt;A&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;This is cross-origin request (CORS), so my browser sends a pre-flight request.&lt;/P&gt;&lt;P&gt;And that pre-flight request does not find Access-Control-Allow-Origins in the response; so it thinks CORS is not allowed, an error is logged in the browser's Javascript console, &lt;STRONG&gt;and it seems the user isn't logged out.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Any advice here? Thank you!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Nathaniel Anderson removing the auto-linking behavior against non-URLs like "https://"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 02:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Server-logoutUri-has-different-domain-B-than-the/m-p/1240138#M24589</guid>
      <dc:creator />
      <dc:date>2017-02-09T02:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Server logoutUri has different domain (B) than the source of request (A)</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Server-logoutUri-has-different-domain-B-than-the/m-p/1514145#M36652</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Getting the exact same issue as you've described. Has anyone managed to find a way around this? Or anywhere where it can be fixed in config?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 10:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Server-logoutUri-has-different-domain-B-than-the/m-p/1514145#M36652</guid>
      <dc:creator>MattCooper</dc:creator>
      <dc:date>2018-11-29T10:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Server logoutUri has different domain (B) than the source of request (A)</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Server-logoutUri-has-different-domain-B-than-the/m-p/1645364#M48122</link>
      <description>&lt;P&gt;Did you find any solution for this issue?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 13:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Server-logoutUri-has-different-domain-B-than-the/m-p/1645364#M48122</guid>
      <dc:creator>giannis_simanti</dc:creator>
      <dc:date>2019-11-11T13:59:25Z</dc:date>
    </item>
  </channel>
</rss>

