Qlik Community

Ask a Question

Qlik NPrinting Documents

Documents related to Qlik NPrinting.

Announcements
Talk to Experts Tuesday, January 26th at 10AM EST: Qlik Sense. REGISTER NOW

NPrinting February 2020 Change required to scripts running from Qlik load scripts

NPrinting February 2020 Change required to scripts running from Qlik load scripts

Dear all,

Below is a release note from Feb 2020 SR1 version of NPrinting

Chrome SameSite cookie
Jira issue ID: OP-9144
Starting from February 2020, Google Chrome 80 manages the
SameSite cookie differently. Qlik NPrinting supports this new
configuration on both HTTP and HTTPS connections. On-Demand for
Qlik Sense and QlikView will continue to work.

The above change has an impact on all users using API calls running from Qlik Sense or QlikView load scripts as the script to return variable with cookie string will be empty. 

You need to adjust your script for it to continue to work:

Old version:

 

//Extracts session cookie from the API response
let vCookieRaw = Peek('Set-Cookie',0,'_response_header');
let vCookie = TextBetween('$(vCookieRaw)','Secure,','Path=/',2);

 

New Version (note that you need to change the way variable vCookie is created!

 

//Extracts session cookie from the API response
Let vCookieRaw  = Peek('Set-Cookie',0,'cookie_items');
Let vCookie     = TextBetween('$(vCookieRaw)','SameSite=None,','Path=/',2);

 

 

thats it.

 

thanks

Lech

Labels (1)
Version history
Revision #:
1 of 1
Last update:
‎2020-03-26 10:41 PM
Updated by:
 
Contributors