bohua / nprinting-sense-on-demand

NPrinting On-demand extension for Qlik Sense
MIT License
10 stars 13 forks source link

Using On-Demand not over port 4993 #26

Closed amien90 closed 5 years ago

amien90 commented 5 years ago

https://nprinting.test.local:4993/

4993 is blocked for us. So we creating a routing from https://nprinting.test.local/nprinting/ to https://nprinting.test.local:4993/ First one is 443 and this is allowed.

But now On-Demand is not working. I can connect. I see the reports. When i want to use it, i get the NTML pop-up and i can login. But after this, nothing happens.

Is anyone aware of any additional changes i need to do to make https://nprinting.test.local/nprinting/ work?

Thanks in advanced

amien90 commented 5 years ago

<!DOCTYPE html>

Forbidden

Forbidden

REVEL_CSRF: tokens mismatch.

This is the error

and29 commented 5 years ago

Hi @amien90, have you tried to change the port configuration of Nprinting? You can do it from configuration file: ProgramData\NPrinting\webconsoleproxy\app.conf by uncommenting "http.port=4993" and changing the port number (you need to restart the engine service to see the change). So you can try to authenticate directly to the proxy on the new port and see if it works.

Andrea

amien90 commented 5 years ago

"http.port=4993" is uncommented.

The problem seems to be that the Application gateway of Azure if not respecting (and removed) the custom entry X-XSRF-TOKEN. I will check if this can be fixed.

and29 commented 5 years ago

can you also change the port value, setting it to an open port you can use in your environment?

amien90 commented 5 years ago

we went for white listing port 4993

amien90 commented 5 years ago

there were not other ports open. using 443 was not possible because it runs on the same domain as Qlik Sense and there 443 was already taken.