<?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 NPrinting API Error from POSTMAN - Forbidden REVEL_CSRF tokens mismatch in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API-Error-from-POSTMAN-Forbidden-REVEL-CSRF-tokens/m-p/1774522#M30940</link>
    <description>&lt;P&gt;Hi All,&lt;BR /&gt;I'm testing NPrining APIs (OnDemandRequest) from POSTMAN.&lt;BR /&gt;I used NTLM Auth and tried GET and it works.&lt;/P&gt;&lt;P&gt;https://&amp;lt;np_serverhost&amp;gt;:4993/api/v1/reports&lt;BR /&gt;After getting the Report ID, I tried POST call using the Report ID found from GET response.&lt;/P&gt;&lt;P&gt;https://&amp;lt;np_serverhost&amp;gt;:4993/api/v1/ondemand/requests&lt;BR /&gt;{&lt;BR /&gt;"type": "Report",&lt;BR /&gt;"config": {&lt;BR /&gt;"reportId": "0a0f095d-5109-4212-89d4-156bc3079469",&lt;BR /&gt;"outputFormat": "XLS"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I also added localhost to admin/settings &amp;gt; ondemand &amp;gt; trusted origin in NP Console.&lt;/P&gt;&lt;P&gt;It gives me an error.&lt;/P&gt;&lt;P&gt;Forbidden&lt;BR /&gt;REVEL_CSRF: tokens mismatch.&lt;/P&gt;&lt;P&gt;Please help in this regard. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48712"&gt;@Frank_S&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1326"&gt;@Lech_Miszkiewicz&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48729"&gt;@Ruggero_Piccoli&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2021 19:09:37 GMT</pubDate>
    <dc:creator>sudeepkm_analog</dc:creator>
    <dc:date>2021-01-14T19:09:37Z</dc:date>
    <item>
      <title>NPrinting API Error from POSTMAN - Forbidden REVEL_CSRF tokens mismatch</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API-Error-from-POSTMAN-Forbidden-REVEL-CSRF-tokens/m-p/1774522#M30940</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;I'm testing NPrining APIs (OnDemandRequest) from POSTMAN.&lt;BR /&gt;I used NTLM Auth and tried GET and it works.&lt;/P&gt;&lt;P&gt;https://&amp;lt;np_serverhost&amp;gt;:4993/api/v1/reports&lt;BR /&gt;After getting the Report ID, I tried POST call using the Report ID found from GET response.&lt;/P&gt;&lt;P&gt;https://&amp;lt;np_serverhost&amp;gt;:4993/api/v1/ondemand/requests&lt;BR /&gt;{&lt;BR /&gt;"type": "Report",&lt;BR /&gt;"config": {&lt;BR /&gt;"reportId": "0a0f095d-5109-4212-89d4-156bc3079469",&lt;BR /&gt;"outputFormat": "XLS"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I also added localhost to admin/settings &amp;gt; ondemand &amp;gt; trusted origin in NP Console.&lt;/P&gt;&lt;P&gt;It gives me an error.&lt;/P&gt;&lt;P&gt;Forbidden&lt;BR /&gt;REVEL_CSRF: tokens mismatch.&lt;/P&gt;&lt;P&gt;Please help in this regard. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48712"&gt;@Frank_S&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1326"&gt;@Lech_Miszkiewicz&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48729"&gt;@Ruggero_Piccoli&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 19:09:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API-Error-from-POSTMAN-Forbidden-REVEL-CSRF-tokens/m-p/1774522#M30940</guid>
      <dc:creator>sudeepkm_analog</dc:creator>
      <dc:date>2021-01-14T19:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting API Error from POSTMAN - Forbidden REVEL_CSRF tokens mismatch</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API-Error-from-POSTMAN-Forbidden-REVEL-CSRF-tokens/m-p/1774549#M30941</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/111357"&gt;@sudeepkm_analog&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check your REST POST connection.&lt;/P&gt;&lt;P&gt;Ensure you have your Qlik Sense server inserted in the query header address as shown in the image below. In my case, the QS hub/QMC address is:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;qlikserver1.domain.local&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="query header for Qlik Sense server hub QMC address.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47040i073194D815BB647D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="query header for Qlik Sense server hub QMC address.PNG" alt="query header for Qlik Sense server hub QMC address.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This address is also required as a &lt;EM&gt;trusted origin&lt;/EM&gt; in the NPrinting management console&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 20:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API-Error-from-POSTMAN-Forbidden-REVEL-CSRF-tokens/m-p/1774549#M30941</guid>
      <dc:creator>Frank_S</dc:creator>
      <dc:date>2021-01-14T20:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting API Error from POSTMAN - Forbidden REVEL_CSRF tokens mismatch</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API-Error-from-POSTMAN-Forbidden-REVEL-CSRF-tokens/m-p/1774558#M30942</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48712"&gt;@Frank_S&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your quick response. In my case POSTMAN is the client that is making the API Call.&lt;/P&gt;&lt;P&gt;I'm not using QlikSense or QlikView to make the call.&lt;/P&gt;&lt;P&gt;I also checked the&amp;nbsp;&lt;STRONG&gt;NPWEBCONSOLE_XSRF-TOKEN&lt;/STRONG&gt; as mentioned here.(&lt;A href="https://community.qlik.com/t5/Support-Knowledge-Base/How-to-Authenticate-Connect-with-the-Qlik-NPrinting-API-in/ta-p/1716540?_ga=2.104118848.1976822626.1610549407-1849850257.1580830761)" target="_blank"&gt;https://community.qlik.com/t5/Support-Knowledge-Base/How-to-Authenticate-Connect-with-the-Qlik-NPrinting-API-in/ta-p/1716540?_ga=2.104118848.1976822626.1610549407-1849850257.1580830761)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Still it does not work.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 20:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API-Error-from-POSTMAN-Forbidden-REVEL-CSRF-tokens/m-p/1774558#M30942</guid>
      <dc:creator>sudeepkm_analog</dc:creator>
      <dc:date>2021-01-14T20:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting API Error from POSTMAN - Forbidden REVEL_CSRF tokens mismatch</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API-Error-from-POSTMAN-Forbidden-REVEL-CSRF-tokens/m-p/1774611#M30944</link>
      <description>&lt;P&gt;Sorry I forgot one step to add &lt;STRONG&gt;X-XSRF-TOKEN &lt;/STRONG&gt;in my POST request header.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;I'm now able to make "POST" method call successfully.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 22:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API-Error-from-POSTMAN-Forbidden-REVEL-CSRF-tokens/m-p/1774611#M30944</guid>
      <dc:creator>sudeepkm_analog</dc:creator>
      <dc:date>2021-01-14T22:27:31Z</dc:date>
    </item>
  </channel>
</rss>

