<?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: how to connect to qsense web engine November 2024 ? in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/how-to-connect-to-qsense-web-engine-November-2024/m-p/2507227#M21864</link>
    <description>&lt;P&gt;Forgot to mention that you need to apply a modification into &lt;A href="https://help.qlik.com/en-US/sense-admin/November2024/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Administer_QSEoW/Managing_QSEoW/edit-virtual-proxy.htm#:~:text=If%20you%20are,qlik%2Dcsrf%2Dtoken" target="_blank"&gt;Virtual Proxy configuration&lt;/A&gt;. Go in VP configuration, click on Advanced, then Additional response headers.&lt;/P&gt;
&lt;P&gt;You have to add below headers:&lt;/P&gt;
&lt;P&gt;Access-Control-Allow-Credentials: true&lt;/P&gt;
&lt;P&gt;Access-Control-Expose-Headers: qlik-csrf-token&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2025 11:57:31 GMT</pubDate>
    <dc:creator>alex_colombo</dc:creator>
    <dc:date>2025-02-25T11:57:31Z</dc:date>
    <item>
      <title>how to connect to qsense web engine November 2024 ?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/how-to-connect-to-qsense-web-engine-November-2024/m-p/2507112#M21857</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;hi everybody,&lt;BR /&gt;&lt;BR /&gt;the java code below works fine with qlik sense version February 2024&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; URI serverUri = new URI("wss://serverqsense.domaine.fr/vproxyname/app/" + idApp + "?Xrfkey=ABCDEFGH123456");&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; WebSocketClient wsAppClient = new WebSocketClient(serverUri);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wsAppClient.addHeader("Xrfkey", "ABCDEFGH123456");&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wsAppClient.addHeader("usr-api", "BB\\USERQLIKADM");&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wsAppClient.addHeader("Cookie", "");&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Connexion au serveur WebSocket&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wsAppClient.connect();&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;with November 2024 I got error http 403 &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;any idea ?&lt;BR /&gt;&lt;BR /&gt;thanks in advance&lt;/P&gt;
&lt;P&gt;Philippe&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 16:39:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/how-to-connect-to-qsense-web-engine-November-2024/m-p/2507112#M21857</guid>
      <dc:creator>PhilippeG</dc:creator>
      <dc:date>2025-02-24T16:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect to qsense web engine November 2024 ?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/how-to-connect-to-qsense-web-engine-November-2024/m-p/2507213#M21862</link>
      <description>&lt;P&gt;Hey &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/134489"&gt;@PhilippeG&lt;/a&gt;&lt;/SPAN&gt; , in Nov 2024 we introduced few changes at security levels. On of them is the CSRF token. This has to be added to websocket connection as url param.&lt;/P&gt;
&lt;P&gt;When you are authenticated, you have to call a QPS APIs for getting the crsf token value, &lt;A href="https://help.qlik.com/en-US/sense-developer/November2024/apis/ProxyAPI/OpenAPI_Main.generated.html#Csrftoken" target="_blank"&gt;here &lt;/A&gt;the API doc.&lt;/P&gt;
&lt;P&gt;Then, attach csrf token to websocket url like this: &amp;nbsp;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;URI serverUri = new URI("wss://serverqsense.domaine.fr/vproxyname/app/" + idApp + "?Xrfkey=ABCDEFGH123456&amp;amp;qlik-csrf-token=&lt;I&gt;_yourToken_&lt;/I&gt;");&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(45,51,56);font-size:13px;"&gt;Our docs is not up to date, I've raised this internally.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 09:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/how-to-connect-to-qsense-web-engine-November-2024/m-p/2507213#M21862</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2025-02-25T09:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect to qsense web engine November 2024 ?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/how-to-connect-to-qsense-web-engine-November-2024/m-p/2507224#M21863</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/145804"&gt;@alex_colombo&lt;/a&gt;&amp;nbsp;and thanks for your response !&lt;BR /&gt;&lt;BR /&gt;However I still have the 403 error when opening websocket despite adding&amp;nbsp;&lt;SPAN&gt;qlik-csrf-token :&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;I got&amp;nbsp;&lt;SPAN&gt;qlik-csrf-token with this url :&lt;BR /&gt;&lt;A href="https://serverqsense.domaine.fr/vproxyname/qps/csrftoken" target="_blank"&gt;https://serverqsense.domaine.fr/vproxyname/qps/csrftoken&lt;/A&gt;&lt;BR /&gt;and headers :&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;wsAppClient.addHeader("Xrfkey", "ABCDEFGH123456");&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;wsAppClient.addHeader("usr-api", "BB\\USERQLIKADM");&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;I got qlik-csrf-token and a value (j7kh4Y8fmPooKs7QDdfk8A) in response header :&amp;nbsp;so far so good ?&lt;BR /&gt;&lt;BR /&gt;then I call&amp;nbsp;&amp;nbsp;wsAppClient.connect() with URI("wss://serverqsense.domaine.fr/vproxyname/app/" + idApp + "?Xrfkey=ABCDEFGH123456&amp;amp;qlik-csrf-token=j7kh4Y8fmPooKs7QDdfk8A")&lt;BR /&gt;always got&amp;nbsp;&lt;SPAN class="wf__item"&gt;&lt;SPAN class="wf__tk"&gt;Status Code&lt;/SPAN&gt;&lt;/SPAN&gt;: &lt;SPAN class="custom-obj-inspector__item__value"&gt;&lt;SPAN class="wf__item"&gt;&lt;SPAN class="wf__tk"&gt;403 Forbidden&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I notice something weird: &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;if I put a wrong value for&amp;nbsp;domain/user for the "usr-api" key I still get a token.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Do you have another way to get past this 403 error?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 11:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/how-to-connect-to-qsense-web-engine-November-2024/m-p/2507224#M21863</guid>
      <dc:creator>PhilippeG</dc:creator>
      <dc:date>2025-02-25T11:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect to qsense web engine November 2024 ?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/how-to-connect-to-qsense-web-engine-November-2024/m-p/2507227#M21864</link>
      <description>&lt;P&gt;Forgot to mention that you need to apply a modification into &lt;A href="https://help.qlik.com/en-US/sense-admin/November2024/Subsystems/DeployAdministerQSE/Content/Sense_DeployAdminister/QSEoW/Administer_QSEoW/Managing_QSEoW/edit-virtual-proxy.htm#:~:text=If%20you%20are,qlik%2Dcsrf%2Dtoken" target="_blank"&gt;Virtual Proxy configuration&lt;/A&gt;. Go in VP configuration, click on Advanced, then Additional response headers.&lt;/P&gt;
&lt;P&gt;You have to add below headers:&lt;/P&gt;
&lt;P&gt;Access-Control-Allow-Credentials: true&lt;/P&gt;
&lt;P&gt;Access-Control-Expose-Headers: qlik-csrf-token&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 11:57:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/how-to-connect-to-qsense-web-engine-November-2024/m-p/2507227#M21864</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2025-02-25T11:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect to qsense web engine November 2024 ?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/how-to-connect-to-qsense-web-engine-November-2024/m-p/2507232#M21865</link>
      <description>&lt;P&gt;I added this parameters in my QMC :&lt;/P&gt;
&lt;P&gt;Access-Control-Allow-Credentials: true&lt;/P&gt;
&lt;P&gt;Access-Control-Expose-Headers: qlik-csrf-token&lt;BR /&gt;&lt;BR /&gt;in virtual proxy conf , but always 403 !!&lt;BR /&gt;&lt;BR /&gt;I put some pic to illustrate my parameters...&lt;BR /&gt;&lt;BR /&gt;Thanks to help me !&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 13:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/how-to-connect-to-qsense-web-engine-November-2024/m-p/2507232#M21865</guid>
      <dc:creator>PhilippeG</dc:creator>
      <dc:date>2025-02-25T13:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect to qsense web engine November 2024 ?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/how-to-connect-to-qsense-web-engine-November-2024/m-p/2507245#M21866</link>
      <description>&lt;P&gt;I've made some tests and with Ticket auth is working with steps made so far.&lt;/P&gt;
&lt;P&gt;Using header auth, an extra step is required. When you call csrf API you will receive qlik csrf token param and a set Cookie in response headers. Grab that cookie value and attach to websocket headers. It should work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below an example of set cookie response header from csrf API and websocket connection:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/691619c2-1f92-4cbe-81a8-1b1d24e5357f.default.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/85013e75-22ea-4141-bdb6-834f889b45bd.default.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 16:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/how-to-connect-to-qsense-web-engine-November-2024/m-p/2507245#M21866</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2025-02-25T16:21:51Z</dc:date>
    </item>
  </channel>
</rss>

