UnconditionedLife / smum

SMUM Checkin for Santa Maria Urban Ministries (San Jose, California)
https://www.santamariasj.org
3 stars 0 forks source link

Printer access on local network may fail in future Chrome versions #145

Closed scott-r closed 1 year ago

scott-r commented 2 years ago

Chrome added a restriction on accessing local network devices. Fixing that required the app to use https (to indicated that it is trustworthy) and TLS to communicate with the printer.

Now it appears that a future Chrome version (105) will add preflight checks that currently will not succeed. https://developer.chrome.com/blog/private-network-access-preflight/#:~:text=Private%20Network%20Access%20(formerly%20known,to%20make%20private%20network%20requests.

scott-r commented 1 year ago

After trying multiple methods for the app to send requests to a print server on the local network, we finally implemented a different solution. The app now "prints" receipts by storing them in a database table. The print server polls the database table and prints the receipts using the Epson receipt printer.