dsandor / dymojs

A pure javascript library for printing labels on a Dymo Labelwriter printer from the browser or from nodejs.
129 stars 30 forks source link

Change default host to 127.0.0.1 #6

Closed sashahilton00 closed 5 years ago

sashahilton00 commented 5 years ago

Newer versions of the DLS API are checking the host when a request is made. Firing off a request to the v8.7.2 API on macOS leads to a Bad Request (Invalid host) error. Changing localhost to 127.0.0.1 fixes this, and as a bonus makes it slightly more secure.