hivewallet / hive-js

Hive digital currency wallet
http://www.hivewallet.com
GNU General Public License v2.0
81 stars 57 forks source link

Local dev is broken for mobile devices #133

Closed haustraliaer closed 10 years ago

haustraliaer commented 10 years ago

Probably due to not using https.

Got this on entering seed phrase: (could actually be for typefaces - which don't load)

[Error] Failed to load resource: Could not connect to the server. (hivedeb28688cc404aed8451e83a474f9cbf6f40d334e58ee52d03ca80345efb58d7, line 0)

And this once I got to setting/entering the PIN:

[Error] Refused to connect to 'https://btc.blockr.io/api/v1/address/info/1J3jePABR9RjyLmbU4pnBrPatctoneid3H,1Cd7PQxASik18ojcPr9JzgvUUWUY8HRt82,1GAt9FHPcMdcASB6yYUafQZXheZpHz3cMW,1FGShYQ8perWtZNmEGvDappGmj1u3Jx689,1M1vFUx7oCENkomNhnpT2xQUb3BoZuMdBp' because it violates the following Content Security Policy directive: "connect-src 'self' api.bitcoinaverage.com chain.so btc.blockr.io tbtc.blockr.io ltc.blockr.io 127.0.0.1:5984 hive-proxy.herokuapp.com".

    open ([native code], line 0)
    createXHR (application.js, line 47598)
    makeRequest (application.js, line 27650)
    makeRequest (application.js, line 23201)
    listAddresses (application.js, line 22926)
    findUnusedAddress (application.js, line 27576)
    firstTimeSync (application.js, line 27559)
    (anonymous function) (application.js, line 27376)
    (anonymous function) (application.js, line 34141)
    (anonymous function) (application.js, line 17444)
[Error] SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent.
    createXHR (application.js, line 47598)

Could not actually open wallet beyond PIN screen - it would just sit spinning on "verifying pin"

Local dev laptop browser seems to work fine, however.

haustraliaer commented 10 years ago

Also livereload is broken... but you already knew this :P

haustraliaer commented 10 years ago

Confirmed for safari and firefox OS X (and chrome iOS because it's just wrapping safari).

For some reason Chrome OS X is not afflicted by this :/