<?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 Integration JWT error with Qlik Saas in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Integration-JWT-error-with-Qlik-Saas/m-p/2022882#M17871</link>
    <description>&lt;P&gt;Hi Everyone, I am trying to integrate my external users with the JWT in Qlik SaaS. we are getting the error below&lt;/P&gt;
&lt;P&gt;Access to XMLhttpRequest at &lt;A href="https://tenant/login/jwt-session?qlik-web-integration-id=xxxx" target="_blank" rel="noopener"&gt;https://tenant/login/jwt-session?qlik-web-integration-id=xxxx&lt;/A&gt; from origin Our https website has been blocked by CORS policy: Request header field x-csrf-token is not allowed by Access-Control-Allow-Headers in preflight response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post&amp;nbsp;&lt;A href="https://tenant/login/jwt-session?qlik-web-integration-id=xxxx" target="_blank" rel="noopener"&gt;https://tenant/login/jwt-session?qlik-web-integration-id=xxxx&lt;/A&gt;&amp;nbsp;net: ERR_FAILED&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anybody had had the same error before. Any suggestionxs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jan 2023 22:43:01 GMT</pubDate>
    <dc:creator>juanpcardenas</dc:creator>
    <dc:date>2023-01-06T22:43:01Z</dc:date>
    <item>
      <title>Integration JWT error with Qlik Saas</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Integration-JWT-error-with-Qlik-Saas/m-p/2022882#M17871</link>
      <description>&lt;P&gt;Hi Everyone, I am trying to integrate my external users with the JWT in Qlik SaaS. we are getting the error below&lt;/P&gt;
&lt;P&gt;Access to XMLhttpRequest at &lt;A href="https://tenant/login/jwt-session?qlik-web-integration-id=xxxx" target="_blank" rel="noopener"&gt;https://tenant/login/jwt-session?qlik-web-integration-id=xxxx&lt;/A&gt; from origin Our https website has been blocked by CORS policy: Request header field x-csrf-token is not allowed by Access-Control-Allow-Headers in preflight response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post&amp;nbsp;&lt;A href="https://tenant/login/jwt-session?qlik-web-integration-id=xxxx" target="_blank" rel="noopener"&gt;https://tenant/login/jwt-session?qlik-web-integration-id=xxxx&lt;/A&gt;&amp;nbsp;net: ERR_FAILED&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anybody had had the same error before. Any suggestionxs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 22:43:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Integration-JWT-error-with-Qlik-Saas/m-p/2022882#M17871</guid>
      <dc:creator>juanpcardenas</dc:creator>
      <dc:date>2023-01-06T22:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Integration JWT error with Qlik Saas</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Integration-JWT-error-with-Qlik-Saas/m-p/2023081#M17878</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/167559"&gt;@juanpcardenas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Just remove it, this endpoint doesn't seem to need the csrf-token. ex:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;await fetch(
      https://your-tenant/login/jwt-session`,
      {
        method: 'POST',
        credentials: 'include',
        mode: 'cors',
        headers: {
          'content-type': 'application/json',
          Authorization: `Bearer ${signedToken}`,
          'qlik-web-integration-id': &amp;lt;your-web-int-id&amp;gt;,
        },
      },
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend you use our official platform TS SDK, it has function helpers for the JWTAuth flow&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.npmjs.com/package/@qlik/sdk#jwt-auth" target="_blank"&gt;https://www.npmjs.com/package/@qlik/sdk#jwt-auth&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://qlik.dev/libraries-and-tools/platform-sdk" target="_blank"&gt;https://qlik.dev/libraries-and-tools/platform-sdk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://paka.dev/npm/@qlik/sdk@0.16.0/api" target="_blank"&gt;https://paka.dev/npm/@qlik/sdk@0.16.0/api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 09:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Integration-JWT-error-with-Qlik-Saas/m-p/2023081#M17878</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2023-01-09T09:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Integration JWT error with Qlik Saas</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Integration-JWT-error-with-Qlik-Saas/m-p/2023878#M17901</link>
      <description>&lt;P&gt;Hi Aiham, Thanks for you answer.&lt;/P&gt;
&lt;P&gt;Looks like for security purposes is not possible to remove it, Check this link below&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/52506243/angularjs-remove-x-csrf-token-in-http-get" target="_blank"&gt;https://stackoverflow.com/questions/52506243/angularjs-remove-x-csrf-token-in-http-get&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;We are using Angular JS for this JWT token.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any other idea how to handle it? Web developers are assuming Qlik Cloud is denying it.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 15:01:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Integration-JWT-error-with-Qlik-Saas/m-p/2023878#M17901</guid>
      <dc:creator>juanpcardenas</dc:creator>
      <dc:date>2023-01-10T15:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Integration JWT error with Qlik Saas</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Integration-JWT-error-with-Qlik-Saas/m-p/2023879#M17902</link>
      <description>&lt;P&gt;Aiham, Do you have any suggestion to remove it from Angular JS&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 15:03:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Integration-JWT-error-with-Qlik-Saas/m-p/2023879#M17902</guid>
      <dc:creator>juanpcardenas</dc:creator>
      <dc:date>2023-01-10T15:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Integration JWT error with Qlik Saas</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Integration-JWT-error-with-Qlik-Saas/m-p/2024128#M17906</link>
      <description>&lt;P&gt;Reading their docs, it seems like it should be possible through the transformRequest prop (overriding the default headers) &lt;A href="https://docs.angularjs.org/api/ng/service/$http#transforming-requests-and-responses" target="_self"&gt;docs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The alternative would be to use the browser fetch API instead.&lt;/P&gt;&lt;P&gt;I hope this helps&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 06:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Integration-JWT-error-with-Qlik-Saas/m-p/2024128#M17906</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2023-01-11T06:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Integration JWT error with Qlik Saas</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Integration-JWT-error-with-Qlik-Saas/m-p/2025747#M17936</link>
      <description>&lt;P&gt;Thanks the Angular team checked the documentation and looks like now we are not getting that error.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 20:52:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Integration-JWT-error-with-Qlik-Saas/m-p/2025747#M17936</guid>
      <dc:creator>juanpcardenas</dc:creator>
      <dc:date>2023-01-13T20:52:30Z</dc:date>
    </item>
  </channel>
</rss>

