Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
One of the application that I have build for my company makes use of a REST connector to an internal server to get data. Validation of the user on that server is done by logging in using a username and password. The server creates for that session a cookie which can be used for all next GET request authentication.
Since the company updated to the June 2020 patch 2 still connector is not getting any data anymore. The validation with the session cookie fails. I can see that the part of collecting the cookie works. I can use that cookie in postman to reach the exact same endpoints and still get data.
Next was to try and see what headers are posted to the endpoint. Using webhooks I posted one request from Qlik and 1 from Postman. The Qlik REST connector fails to post the 'Cookie' header. I have absolutely no idea why this fails. A ticket is already submitted to our own qlik support team but they also have no idea why the connector fails to post the cookie header since the update.
So, anyone an idea on why the cookie header is not posted? Other headers are posted.
Code example:
SQL SELECT
"Name"
FROM JSON (wrap on) "root"
WITH CONNECTION (
Url "https://webhook.site/testwebhook",
HTTPHEADER "cookie" "$(sessionid)", // Does NOT work
HTTPHEADER "Cookie2" "tst", // Does work
HTTPHEADER "DNT" "1" // Does work
);
Hi,
we use Qlik Sense September 2020 Patch 1 and have the same problem. When I write:
WITH CONNECTION(HTTPHEADER "Content-Type" "application/json",
HTTPHEADER "cookie" "user-token=$(authToken1)",
HTTPHEADER "x-xsrf-token" "$(authToken2)"
I receive the following error:
HTTP protocol error 401 (Unauthorized): Requested resource requires authentication.
When I use Postman everything works fine.
@JMohlmann 02056221