Closed kurtiev closed 1 month 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?
I just figured out, that iOS will never work, since it's using capacitor:// protocol and this SDK has condition "only http || https".
Fixed on 28 Feb 2023.
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.