Browser Print Error - Possibly Security Issue

// Expert user has replied.
M Mike Roosa 3 years 7 months ago
3702 11 0

I have a web app that prints to a usb connected Zebra Printer. Everything works fine from my dev machine over http. However, when I try to use from a remote web server over https I get this error.

An error occured while attempting to connect to your Zebra Printer. You may not have Zebra Browser Print installed, or it may not be running. Install Zebra Browser Print, or start the Zebra Browser Print Service, and try again.

Browser Print is running, because I can go to my local version of the site and it works.

I see this in the Chrome Developer Tools:

I tried to go to https://localhost:9101/ssl_support
Your connection is not private
Attackers might be trying to steal your information from localhost (for example, passwords, messages, or credit cards). Learn more

NET::ERR_CERT_AUTHORITY_INVALID

I can click Advanced and proceed to localhost (unsafe) but then it says Nor Secure for my whole website.

What is the easiest way to get this working over https?

Please Register or Login to post a reply

11 Replies

M Manuel Caicedo-Rivera

Hi Elmar,

ZD410 is supported. Please, follow Christopher's directions, here, below the Steven's blog explaining in detail how to setup the environment correctly to test the new version of Browser Print.

MC

M Manuel Caicedo-Rivera

Yes, it happens when the web-app is still pointing to the previous version of JavaScript, if you remove the old version, and use only the new version of JavaScript that comes with the new installation kit, it should work fine.

MC

M Manuel Caicedo-Rivera

Yes, the latest version was updated last week on Browser Print product page

This release v 1.2.1.279 includes the following changes:

The MAC installer is now signed.
Fixed an issue on MAC where the app could crash when switching USB connected printers.
Corrected an issue where some Chinese and Korean characters did not print.
Enhanced the demo application.
Improved behavior of the settings window on MAC so it appears in front of the active program.
HTTPS no longer uses a self-signed certificate. This removes the need to accept the certificate and removes the “Insecure” warning browsers displayed when using the self-signed certificate.

MC

M Manuel Caicedo-Rivera

Mike,

You have done everything right so far, Browser Print will be updated soon with some improvements for this type of messages. We do not have a released date yet for this new version, but it is coming soon. We will notify you when this new version has been released.

Thanks,

MC

C Curt Sundqvist

I also have problems getting Browser Print to work as I want.
Everything is working fine as long as I print from my Samsung Tablet (Chrome and ZD421 (wifi connected).
But when I make a card payment using the Sumup App trigged from the same webpage,. Sumup executes the payment and then
makes a callback (https://....) to my website, but then I get selected device = 'undefined' 
from the setup function BrowserPrint.getDefaultDevice("printer", function(printer).
What is going wrong?

S Steven Si

Did you get a CORS error? You can run the debug to verify if there is a CORS error when the SumUp invokes the callback to your website. For security reason, browsers usually block the requests from cross domain resources.

C Curt Sundqvist

No error at all.
The function setup() {BrowserPrint.getDefaultDevice("printer", function(printer)...............} just dont find any selected_device ('undefined') and the page hangs
when the

function writeToSelectedPrinter() {
 selected_device.send('text_to_print', undefined, errorCallback);
}

is called.

S Steven Si

Are you able to find the printer from the Browser Print demo webapp, https://cagdemo.com, which is a HTTPS site?

C Curt Sundqvist

Nope!

https://cagdemo.com just showing "Loading Printer Information" and then hangs.

S Steven Si

It looks like the multicast is blocked on your Wi-Fi network. Consult your network admin to unblock the multicast, because the multicast is used to discover Zebra printers on the network. In addition, make sure you have the latest Browser Print client installed on your local device (Windows, Mac OS & Android) and the latest Browser Print JavaScript library. Then you should be able to see a list of the discovered printers connected with USB and network when accessing the https://cagdemo.com

Discovered Printers

C Curt Sundqvist

Multicast enabled. Router RT-AX55. No change. Shows just 'Loading Printer Information' and then hangs -:(

CONTACT
Can’t find what you’re looking for?