BitBoxSwiss / bitbox02-api-js

BitBox02 JavaScript library
Other
11 stars 9 forks source link

cors: handle http response returned by the bridge #17

Closed Tomasvrba closed 4 years ago

Tomasvrba commented 4 years ago

With the improvements in https://github.com/digitalbitbox/bitbox-bridge/pull/4/files we can now correctly distinguish what kind of response the bridge returns and invoke the appropriate error, sich as "Origin not whitelisted" when the brdige returns 403