Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

requiring js/qlik from server

Ive just successfully got the qlik authentication working with a custom login and home page.

This is the code I'm using and the error I get is at the bottom of the page.

note: I found this line in the Qlik Playground website tutorial "This example assumes you are already authenticated or have allowed anonymous access to your Qlik Sense instance." (Qlik Playground)

So out of curiosity I allowed anonymous access and I still cant load the resources.

Do I have to generate them first or will the dependencies be available by default anyway?

var config = {

  host: "ip-address",

  prefix: "/dev-test/",

  port: "443",

  isSecure: true

  };

  var url = (config.isSecure ? 'https://' : 'http://' ) + config.host + (config.port ? ':' + config.port : '') + config.prefix + 'resources';

  var app;

  require.config({baseUrl: url});

require(['js/qlik'], function (qlik) {

  // this is always null at the moment

  console.log(qlik);

  //app = qlik.openApp('2435bc6b-b2fa-4992-9b6e-93d0bea90faf', config);

  });

Error:

?proxyRestUri=https%3a%2f%server%3a4243%2fqps%2fdev-test%2f&targetId=b868f075-0501-4f43-b3e…:1 Uncaught SyntaxError: Unexpected token <

1 Reply
Anonymous
Not applicable
Author

Hi,

Could you solve this issue, even I am facing the same issue