wealthica / vezgo-sdk-js

MIT License
17 stars 5 forks source link

CapacitorJS is supported? #70

Closed kurtiev closed 1 month ago

kurtiev commented 6 months ago

Will it work from on CapacitorJS apps? Since Capacitor uses http://localhost for Android and capacitor://loaclhost for iOS, I'm interested in how CORS will work here.

kurtiev commented 6 months ago

I tried on my Desktop with https://localhost:4200 - it working well. Android works as well, it has http://localhost.

But on iOS got an error message about "Origin". CapacitorJS iOS is running on capacitor://localhost

I believe we need to pass "origin": "capacitor://localhost, http://localhost" while creating a token on the server side. Am I right?

image

kurtiev commented 6 months ago

I just figured out, that iOS will never work, since it's using capacitor:// protocol and this SDK has condition "only http || https".

image
oleg-vysotsky commented 1 month ago

Fixed on 28 Feb 2023.