PrintBase
  • Product
  • Pricing
  • Docs
  • Resources
PrintBase/Guides/Printing troubleshooting

Chrome private network access and localhost printing

A public HTTPS page calling a localhost printer bridge is what private-network rules restrict. Printing from your server avoids that browser call.

For Developers whose localhost print bridge broke

Overview

Chrome has been restricting public sites from calling private and loopback addresses. Printer helpers that bind 127.0.0.1 from a cloud-hosted origin are in that category. The symptom is a failed request in the console, not a bug in the printer.

PrintBase does not need the page to call the printer. The page calls your API on the public origin. Your API calls api.printbase.cloud. The agent calls out from the shop. None of those hops is a public site fetching localhost.

If you still run a local helper for a kiosk, serve the kiosk page from localhost or keep it on a vendor host that the helper allow-lists. Do not ask cashiers to disable browser security.

Integration steps

  1. 01

    Confirm the failure is the browser

    The blocked URL is 127.0.0.1 or a private LAN address from an HTTPS shop.

  2. 02

    Move the print call to the server

    The browser stops touching the printer port. Use POST /v1/print-jobs with Authorization: Bearer and the printer_code from GET /v1/printers.

  3. 03

    Install the agent on the shop PC

    The OS queue remains the way paper comes out. Use POST /v1/print-jobs with Authorization: Bearer and the printer_code from GET /v1/printers.

  4. 04

    Retire the localhost SDK if nothing else needs it

    DYMO, Zebra Browser Print, and similar helpers can stay for other apps. They are not required for this path.

Node.js

// Server call that replaces a localhost fetch
const res = await fetch('https://api.printbase.cloud/v1/print-jobs', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PRINTBASE_API_KEY}`,
    'Content-Type': 'application/json',
    'Idempotency-Key': idempotencyKey,
  },
  body: JSON.stringify({
    printer_code: Number(process.env.PRINTER_CODE),
    content_type: 'pdf',
    content: pdf.toString('base64'),
    copies: 1,
  }),
});
if (!res.ok) throw new Error(`PrintBase ${res.status}: ${await res.text()}`);
const job = await res.json();
// { id: "job_abc", status: "queued" }

Details for this setup

This is not a PrintBase error code

INVALID_CONTENT and AGENT_OFFLINE are API results. A CORS or private-network error happens before your server is involved.

Do not document a Chrome flag as the fix

Flags change and are unsafe as a deployment step. The agent prints only what you send; it does not fetch the document from the platform for you.

Questions

Did PrintBase disable the bridge?

No. The browser restricts the page. The API never needed that request.

Our admin is also on HTTPS.

Good. It should call your HTTPS API, not the printer. The call is still POST /v1/print-jobs with a Bearer API key, and HTTP 201 means queued rather than printed.

Intranet HTTP pages?

Some browsers treat them differently. Do not bet a rollout on that. Use the server path.

Local agent port from our admin?

Only if the admin origin is allow-listed. A custom admin domain is not.

Related guides

  • Print without a dialog in JavaScript

    Browsers will not silently print from a public page. The workable pattern is your backend plus the print API, not a hidden window.print.

  • Zebra Browser Print certificate error on https://localhost:9101

    Zebra Browser Print listens on local ports 9100 and 9101. A certificate warning on https://localhost:9101 comes from that local helper, not from the PrintBase API.

  • Zebra Browser Print alternative: send ZPL from your server

    Zebra Browser Print is a localhost helper that sends ZPL from a web page on ports 9100 and 9101. A server-side app can send the same ZPL through the print API instead.

  • DYMO Connect web service alternative

    DYMO's browser integration talks to a local service. A server can send a correctly sized PDF to the LabelWriter queue instead, with no DYMO JavaScript SDK.

Free plan: 100 jobs a month on one computer, no card.

Create a free accountRead the API docs
PrintBase

PrintBase connects your applications to physical printers anywhere - securely, reliably, and in real time.

Product
Receipt PrintingLabel PrintingDashboardDevicesWebhooks
Resources
DocsBlogStatusAPI ReferenceDownloadPrintBase vs PrintNodePrintNode PricingFAQ
Guides
All guidesIntegrationsPrintersCode samplesComparisonsUse casesTroubleshooting
Company
ContactSecurityPrivacy

© 2026 Aveniq Technologies OÜ. All rights reserved. PrintBase is a service of Aveniq Technologies OÜ.

PrivacyTermsRefunds