<?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 Set-Cookie response-HTTP header ignored: Qliksense mashup external webapp in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-Cookie-response-HTTP-header-ignored-Qliksense-mashup/m-p/1233291#M6524</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to build a web-app on an external webserver, with qliksense embedded. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that when the client ask for a resource behind the virtual proxy like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', 'Courier New', monospace; font-size: 12px;"&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;server&amp;gt;/&amp;lt;proxy prefix&amp;gt;/resources/img/core/dark_noise_16x16.png?qlikTicket=&amp;lt;qlikTicket&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;the server responds with &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;a http response header "Set-Cookie", but Chrome on localhost:3000 does not set the cookie.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Why is that - I got it working earlier with the central proxy.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I tried with the following settings on the virtual-proxy: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Origin: *&lt;/P&gt;&lt;P&gt;Access-Control-Expose-Headers: Set-Cookie, Content-Disposition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas are very welcome.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jan 2017 12:07:23 GMT</pubDate>
    <dc:creator>alexbjorlig</dc:creator>
    <dc:date>2017-01-25T12:07:23Z</dc:date>
    <item>
      <title>Set-Cookie response-HTTP header ignored: Qliksense mashup external webapp</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-Cookie-response-HTTP-header-ignored-Qliksense-mashup/m-p/1233291#M6524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to build a web-app on an external webserver, with qliksense embedded. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that when the client ask for a resource behind the virtual proxy like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', 'Courier New', monospace; font-size: 12px;"&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;server&amp;gt;/&amp;lt;proxy prefix&amp;gt;/resources/img/core/dark_noise_16x16.png?qlikTicket=&amp;lt;qlikTicket&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;the server responds with &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;a http response header "Set-Cookie", but Chrome on localhost:3000 does not set the cookie.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Why is that - I got it working earlier with the central proxy.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I tried with the following settings on the virtual-proxy: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Origin: *&lt;/P&gt;&lt;P&gt;Access-Control-Expose-Headers: Set-Cookie, Content-Disposition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas are very welcome.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 12:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-Cookie-response-HTTP-header-ignored-Qliksense-mashup/m-p/1233291#M6524</guid>
      <dc:creator>alexbjorlig</dc:creator>
      <dc:date>2017-01-25T12:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set-Cookie response-HTTP header ignored: Qliksense mashup external webapp</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Set-Cookie-response-HTTP-header-ignored-Qliksense-mashup/m-p/1233292#M6525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved this by setting the&lt;/P&gt;&lt;P&gt;angular $httpProvider.defaults.withCredentials = true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the virtual proxy:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Access-Control-Allow-Origin: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:3000" rel="nofollow" target="_blank"&gt;http://localhost:3000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Access-Control-Allow-Credentials: true&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 12:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Set-Cookie-response-HTTP-header-ignored-Qliksense-mashup/m-p/1233292#M6525</guid>
      <dc:creator>alexbjorlig</dc:creator>
      <dc:date>2017-01-25T12:49:51Z</dc:date>
    </item>
  </channel>
</rss>

