<?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 NPrinting POST REST API Connection 403 (Forbidden) Error in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-Sense-NPrinting-POST-REST-API-Connection-403-Forbidden/m-p/2443014#M41389</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;When opening a new conversation in the community please always add the label with the correct version you are using. For example, the strig to retrieve the token changed and you need to use the correct one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the following article&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/How-to-create-NPrinting-GET-and-POST-REST-connections/ta-p/1832298" target="_blank"&gt;https://community.qlik.com/t5/Official-Support-Articles/How-to-create-NPrinting-GET-and-POST-REST-connections/ta-p/1832298 &lt;/A&gt;and let us know if it solves.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ruggero&lt;/P&gt;</description>
    <pubDate>Fri, 19 Apr 2024 14:42:49 GMT</pubDate>
    <dc:creator>Ruggero_Piccoli</dc:creator>
    <dc:date>2024-04-19T14:42:49Z</dc:date>
    <item>
      <title>Qlik Sense NPrinting POST REST API Connection 403 (Forbidden) Error</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-Sense-NPrinting-POST-REST-API-Connection-403-Forbidden/m-p/2442864#M41388</link>
      <description>&lt;P&gt;I have created a GET REST connection to NPrinting and it works perfectly. This is the GET REST Connection Setup...&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GET REST Connection Setup" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164341iB7111B79C6965050/image-size/large?v=v2&amp;amp;px=999" role="button" title="GET Config.png" alt="GET REST Connection Setup" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;GET REST Connection Setup&lt;/span&gt;&lt;/span&gt;&lt;BR /&gt;My problem is that I am not able to set up a POST REST Connection. Everything is the same, except for the Method and the Trusted Locations, which has been loaded into NPrinting.&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="POST REST Connection Setup" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164342i5910BD9BEEC7383C/image-size/large?v=v2&amp;amp;px=999" role="button" title="POST Config.png" alt="POST REST Connection Setup" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;POST REST Connection Setup&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I managed to get the POST working in Postman, by first doing a GET login. Then copying the&amp;nbsp;&lt;EM&gt;XSRF-TOKEN&lt;/EM&gt; out of the Cookie and adding it to a&amp;nbsp;&lt;SPAN&gt;X-XSRF-TOKEN key under Headers.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Postman POST REST Setup" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164343i6F33B279B01DE3EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Postman POST Config.png" alt="Postman POST REST Setup" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Postman POST REST Setup&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This was a manual workaround, the problem is how to do it when setting up a Qlik Sense POST REST login connection... I can't get the XSRF-TOKEN to add it to the connection, to get the connection to authenticate, i.e., not give the 403 (Forbidden) error...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Apr 2024 07:15:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-Sense-NPrinting-POST-REST-API-Connection-403-Forbidden/m-p/2442864#M41388</guid>
      <dc:creator>wandapec</dc:creator>
      <dc:date>2024-04-20T07:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense NPrinting POST REST API Connection 403 (Forbidden) Error</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-Sense-NPrinting-POST-REST-API-Connection-403-Forbidden/m-p/2443014#M41389</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;When opening a new conversation in the community please always add the label with the correct version you are using. For example, the strig to retrieve the token changed and you need to use the correct one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the following article&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/How-to-create-NPrinting-GET-and-POST-REST-connections/ta-p/1832298" target="_blank"&gt;https://community.qlik.com/t5/Official-Support-Articles/How-to-create-NPrinting-GET-and-POST-REST-connections/ta-p/1832298 &lt;/A&gt;and let us know if it solves.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ruggero&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 14:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-Sense-NPrinting-POST-REST-API-Connection-403-Forbidden/m-p/2443014#M41389</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2024-04-19T14:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense NPrinting POST REST API Connection 403 (Forbidden) Error</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-Sense-NPrinting-POST-REST-API-Connection-403-Forbidden/m-p/2443146#M41390</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48729"&gt;@Ruggero_Piccoli&lt;/a&gt;. I fixed the post...&lt;BR /&gt;&lt;BR /&gt;I took a closer look at the post you linked to, which I had seen previously, and I had missed one small difference between what I was doing and&amp;nbsp;Frank's setup..&lt;BR /&gt;In NPrinting, I added the Qlik Sense address as a trusted origin. Then in Qlik Sense, I think I was fooled by the word 'Trusted' and was adding the origin to the &lt;EM&gt;Trusted Locations&lt;/EM&gt; section.&lt;BR /&gt;Changed it to the &lt;EM&gt;Query Headers&lt;/EM&gt; section and it worked!&amp;nbsp;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="REST POST Correct Origin" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/164408iBB1C09ADB0721BC5/image-size/large?v=v2&amp;amp;px=999" role="button" title="POST Fix.png" alt="REST POST Correct Origin" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;REST POST Correct Origin&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Apr 2024 08:05:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-Sense-NPrinting-POST-REST-API-Connection-403-Forbidden/m-p/2443146#M41390</guid>
      <dc:creator>wandapec</dc:creator>
      <dc:date>2024-04-20T08:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense NPrinting POST REST API Connection 403 (Forbidden) Error</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-Sense-NPrinting-POST-REST-API-Connection-403-Forbidden/m-p/2539645#M43075</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I used to get the same error then after giving in query headers i was able to create the connection. now I am facing the same error in my code snippet when i am loading the data. This is the error:&lt;/P&gt;&lt;P&gt;HTTP protocol error 403 (Forbidden):&lt;/P&gt;&lt;P&gt;The server refused to fulfill the request.&amp;nbsp;In this post connection under URL i gave npritning url which is &lt;A href="https://RemotedesktopServer:npPORT" target="_blank" rel="noopener"&gt;https://RemotedesktopServer:npPORT&lt;/A&gt;&amp;nbsp;while the Origin and in npritining on demand trusted orgin where we need to give Qliksense hub link it is &lt;A href="https://QlikorganisationNameServer" target="_blank" rel="noopener"&gt;https://QlikorganisationNameServer&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you can see, both Names of the server is different. is it because of this i am getting error in my load script. Note: I am sure my script is correct just I am not sure of this connection thing is correct or not. And i use MAY 2021&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Dec 2025 13:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-Sense-NPrinting-POST-REST-API-Connection-403-Forbidden/m-p/2539645#M43075</guid>
      <dc:creator>Ana31</dc:creator>
      <dc:date>2025-12-19T13:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense NPrinting POST REST API Connection 403 (Forbidden) Error</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-Sense-NPrinting-POST-REST-API-Connection-403-Forbidden/m-p/2539653#M43077</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I recommend using a supported version of Qlik NPrinting and opening a new, dedicated thread for your specific case.&lt;/P&gt;
&lt;P&gt;It is normal that the NPrinting API URL (e.g. &lt;A href="https://RemotedesktopServer:npPORT/api/v1/connections/ConnectionID/reload" target="_blank"&gt;https://RemotedesktopServer:npPORT/api/v1/connections/ConnectionID/reload&lt;/A&gt;) is different from the Origin. Please ensure the Origin you send matches exactly one of the Trusted Origins configured in NPrinting.&lt;/P&gt;
&lt;P&gt;Also check authentication before launching the reload:&lt;BR /&gt;- Make sure the token is correctly retrieved from the authentication call and then passed into the connection reload call.&lt;BR /&gt;- Confirm the user you authenticate with is allowed to use the NPrinting APIs.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ruggero&lt;/P&gt;</description>
      <pubDate>Fri, 19 Dec 2025 14:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-Sense-NPrinting-POST-REST-API-Connection-403-Forbidden/m-p/2539653#M43077</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2025-12-19T14:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense NPrinting POST REST API Connection 403 (Forbidden) Error</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-Sense-NPrinting-POST-REST-API-Connection-403-Forbidden/m-p/2539673#M43078</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;BR /&gt;I have one more doubt regarding the authentication, We login Nprinting using 'Windows Login' (i.e whatever userid and password for RDP). In the GET &amp;amp; POST while creating connection I gave this login credentials domain\userid and password under Authentication Schema &amp;gt; Windows NTLM. Will this be an issue as you mentioned &lt;SPAN&gt;Confirm the user you authenticate with is allowed to use the NPrinting APIs&lt;/SPAN&gt;? This user is a Admin role in Nprinting though. Can you please clarify on this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And yes, will start a new thread. thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Dec 2025 17:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-Sense-NPrinting-POST-REST-API-Connection-403-Forbidden/m-p/2539673#M43078</guid>
      <dc:creator>Ana31</dc:creator>
      <dc:date>2025-12-19T17:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense NPrinting POST REST API Connection 403 (Forbidden) Error</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-Sense-NPrinting-POST-REST-API-Connection-403-Forbidden/m-p/2539724#M43080</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It is not clear what and how are you developing. In any case you have to retrieve the session token. There are many examples online with step-by-step guide, like&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/How-to-use-NPrinting-APIs-with-Qlik-REST-Connector/ta-p/1717126" target="_blank"&gt;https://community.qlik.com/t5/Official-Support-Articles/How-to-use-NPrinting-APIs-with-Qlik-REST-Connector/ta-p/1717126&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ruggero&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Dec 2025 08:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-Sense-NPrinting-POST-REST-API-Connection-403-Forbidden/m-p/2539724#M43080</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2025-12-22T08:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense NPrinting POST REST API Connection 403 (Forbidden) Error</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-Sense-NPrinting-POST-REST-API-Connection-403-Forbidden/m-p/2539733#M43081</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the help. I got the correct output. i.e to trigger nprinting task once Qlik app reloads. Pls find the code below:&lt;BR /&gt;NOTE: those using qlik onprem 2021 version&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'REST_GET ';&lt;/P&gt;&lt;P&gt;RestConnectorMasterTable:&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Set-Cookie",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "__KEY__response_header"&lt;/P&gt;&lt;P&gt;FROM JSON "_response_header" PK "__KEY__response_header";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cookie_items:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Set-Cookie]&lt;/P&gt;&lt;P&gt;RESIDENT RestConnectorMasterTable&lt;/P&gt;&lt;P&gt;WHERE NOT IsNull([__KEY__response_header]);&lt;/P&gt;&lt;P&gt;DROP TABLE RestConnectorMasterTable;&lt;/P&gt;&lt;P&gt;LET vCookieRaw = Peek('Set-Cookie',0,'cookie_items');&lt;/P&gt;&lt;P&gt;LET vCookie = TextBetween(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vCookieRaw,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'SameSite=None,',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Path=/',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubStringCount(vCookieRaw,'SameSite=None')-1&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;DROP TABLE cookie_items;&lt;/P&gt;&lt;P&gt;LET vTaskId = 'xx-xxx';&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LET vPublishURL =&lt;/P&gt;&lt;P&gt;'&lt;A href="https://10.5.5.11:4993/api/v1/tasks/" target="_blank" rel="noopener"&gt;https://qlikNprintingServer:4993/api/v1/tasks/&lt;/A&gt;' &amp;amp; '$(vTaskId)' &amp;amp; '/executions';&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'REST_POST';&lt;/P&gt;&lt;P&gt;RestNPTaskTriggerTable:&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "__KEY_data"&lt;/P&gt;&lt;P&gt;FROM JSON (wrap off) "data" PK "__KEY_data"&lt;/P&gt;&lt;P&gt;WITH CONNECTION (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; URL "$(vPublishURL)",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HTTPHEADER "cookie" "$(vCookie)"&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;DROP TABLE RestNPTaskTriggerTable;&lt;/P&gt;&lt;P&gt;TRACE &amp;gt;&amp;gt;&amp;gt; Triggered NP task: $(vTaskId);&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 07:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Qlik-Sense-NPrinting-POST-REST-API-Connection-403-Forbidden/m-p/2539733#M43081</guid>
      <dc:creator>Ana31</dc:creator>
      <dc:date>2026-01-05T07:55:00Z</dc:date>
    </item>
  </channel>
</rss>

