<?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: Getting 403 when using exportPdf method in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Getting-403-when-using-exportPdf-method/m-p/1526339#M9775</link>
    <description>&lt;P&gt;I'm using&amp;nbsp;&lt;SPAN&gt;Qlik Sense November 2018 Patch 1&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Jan 2019 12:37:09 GMT</pubDate>
    <dc:creator>TomaszP</dc:creator>
    <dc:date>2019-01-04T12:37:09Z</dc:date>
    <item>
      <title>Getting 403 when using exportPdf method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Getting-403-when-using-exportPdf-method/m-p/1525857#M9763</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I'm integrating&amp;nbsp; Qlik Sense with our custom app. One of the requirements is to have export as pdf functionality. I use exportPdf method (&lt;A href="https://help.qlik.com/en-US/sense-developer/November2018/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/VisualizationAPI/exportPdf-method.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/November2018/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/VisualizationAPI/exportPdf-method.htm&lt;/A&gt;). I have Qlik Sense November 2018 Patch 1 version installed on the server.&lt;/P&gt;&lt;P&gt;I used this method in mashup editor and it works well. When I moved the code to our app I'm getting 403 error: "The initial authentication request must be a "GET" request in order to be redirected to the authentication module".&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;app.visualization.get(objId).then(function (model) {                                        
    var settings = {
       documentSize: { width: 297, height: 210 },
       aspectRatio: 0,
       objectSize: { width: 400, height: 300 }
    };

    $(".exporttopdf").click(function (e) {                                            
         model.exportPdf(settings).then(function (result) {
             window.open(result, "_blank");
         });
     });
});&lt;/PRE&gt;&lt;P&gt;Any ideas how to make this work?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 13:59:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Getting-403-when-using-exportPdf-method/m-p/1525857#M9763</guid>
      <dc:creator>TomaszP</dc:creator>
      <dc:date>2019-01-03T13:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Getting 403 when using exportPdf method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Getting-403-when-using-exportPdf-method/m-p/1525885#M9764</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/59071"&gt;@TomaszP&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;When you are in dev-hub,&amp;nbsp;you are already authenticated against your Qlik Sense Server instance, once you move the code outside you need to authenticate.&amp;nbsp;You can search the community for good example (ex. &lt;A href="https://community.qlik.com/t5/Qlik-Sense-Integration/Mashup-Capability-API-without-a-redirect-for-authentication/td-p/969138" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Sense-Integration/Mashup-Capability-API-without-a-redirect-for-authentication/td-p/969138&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;Note that if your users are logged in as Anonymous, this is a documented limitation in the release note:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Export as Anonymous does not work for mashups deployed in a domain that is different from the domain in which Qlik Sense is installed. Export only works for Anonymous if the mashup is deployed in the same domain as Qlik Sense.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;see -&amp;gt;&amp;nbsp;&lt;A href="https://da3hntz84uekx.cloudfront.net/QlikSense/12.44/0/QlikSense_November_2018_ReleaseNotes.pdf" target="_blank"&gt;https://da3hntz84uekx.cloudfront.net/QlikSense/12.44/0/QlikSense_November_2018_ReleaseNotes.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 14:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Getting-403-when-using-exportPdf-method/m-p/1525885#M9764</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2019-01-03T14:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting 403 when using exportPdf method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Getting-403-when-using-exportPdf-method/m-p/1526298#M9773</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/45449"&gt;@Aiham_Azmeh&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;I checked this, I have the session cookie (X-Qlik-Session) on place. When I ask for require.js file from qlik server I geting redirected to internal windows authentication, I get the qlikTicket and then cookie is set (I can see Set-Cookie in response header).&amp;nbsp;&lt;/P&gt;&lt;P&gt;When request for pdf is sent ("&amp;lt;server&amp;gt;/printing/export/object/pdf") this cookie is not attached to request.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 11:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Getting-403-when-using-exportPdf-method/m-p/1526298#M9773</guid>
      <dc:creator>TomaszP</dc:creator>
      <dc:date>2019-01-04T11:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Getting 403 when using exportPdf method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Getting-403-when-using-exportPdf-method/m-p/1526337#M9774</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;I can't reproduce the issue&lt;/STRIKE&gt; - can you tell us what Qlik Sense version you are using?&lt;/P&gt;
&lt;P&gt;I just found&amp;nbsp;a similar issue in our bug reporting system and it seems to have been fixed in the Nov patch 2 release&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 12:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Getting-403-when-using-exportPdf-method/m-p/1526337#M9774</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2019-01-04T12:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Getting 403 when using exportPdf method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Getting-403-when-using-exportPdf-method/m-p/1526339#M9775</link>
      <description>&lt;P&gt;I'm using&amp;nbsp;&lt;SPAN&gt;Qlik Sense November 2018 Patch 1&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 12:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Getting-403-when-using-exportPdf-method/m-p/1526339#M9775</guid>
      <dc:creator>TomaszP</dc:creator>
      <dc:date>2019-01-04T12:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting 403 when using exportPdf method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Getting-403-when-using-exportPdf-method/m-p/1526342#M9776</link>
      <description>Allright, as mentioned before - I just found a similar issue in our bug reporting system and it seems to have been fixed in the Nov patch 2 . Try to upgrade.</description>
      <pubDate>Fri, 04 Jan 2019 12:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Getting-403-when-using-exportPdf-method/m-p/1526342#M9776</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2019-01-04T12:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Getting 403 when using exportPdf method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Getting-403-when-using-exportPdf-method/m-p/1526346#M9777</link>
      <description>&lt;P&gt;Thank you. I will upgrade to Patch 2 and I will let you know if that helped.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 12:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Getting-403-when-using-exportPdf-method/m-p/1526346#M9777</guid>
      <dc:creator>TomaszP</dc:creator>
      <dc:date>2019-01-04T12:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Getting 403 when using exportPdf method</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Getting-403-when-using-exportPdf-method/m-p/1537159#M9935</link>
      <description>Thank you. After installing Patch 2 everything is working.</description>
      <pubDate>Wed, 30 Jan 2019 13:03:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Getting-403-when-using-exportPdf-method/m-p/1537159#M9935</guid>
      <dc:creator>TomaszP</dc:creator>
      <dc:date>2019-01-30T13:03:04Z</dc:date>
    </item>
  </channel>
</rss>

