oauth-io / oauth-phonegap

OAuth.io plugin for Apache Cordova/PhoneGap
195 stars 69 forks source link

WebView localhost errors with latest Phonegap (3.3) #9

Closed wintercounter closed 10 years ago

wintercounter commented 10 years ago

01-29 22:18:59.466 8420-8420/com.winter.domain D/CordovaLog﹕ file:///android_asset/www/cordova.js: Line 1034 : processMessage failed: Message: S11 InAppBrowser1735723858 {"type":"loadstart","url":"http:\/\/localhost\/#oauthio=%7B%22status%22%3A%22error%22%2C%22message%22%3A%22Origin%20%5C%22http%3A%2F%2Flocalhost%5C%22%20does%20not%20match%20any%20registered%20domain%2Furl%20on%20domain.com%3A6284%22%2C%22state%22%3A%223k-usBTWsBdTNI1hCR5sq1ZqVSc%22%2C%22provider%22%3A%22facebook%22%7D"} 01-29 22:18:59.466 8420-8420/com.winter.domain I/chromium﹕ [INFO:CONSOLE(1034)] "processMessage failed: Message: S11 InAppBrowser1735723858 {"type":"loadstart","url":"http:\/\/localhost\/#oauthio=%7B%22status%22%3A%22error%22%2C%22message%22%3A%22Origin%20%5C%22http%3A%2F%2Flocalhost%5C%22%20does%20not%20match%20any%20registered%20domain%2Furl%20on%20domain.com%3A6284%22%2C%22state%22%3A%223k-usBTWsBdTNI1hCR5sq1ZqVSc%22%2C%22provider%22%3A%22facebook%22%7D"}", source: file:///android_asset/www/cordova.js (1034) 01-29 22:18:59.466 8420-8420/com.winter.domain D/CordovaLog﹕ file:///android_asset/www/cordova.js: Line 1035 : processMessage failed: Error: TypeError: Cannot call method 'get' of undefined 01-29 22:18:59.466 8420-8420/com.winter.domain I/chromium﹕ [INFO:CONSOLE(1035)] "processMessage failed: Error: TypeError: Cannot call method 'get' of undefined", source: file:///android_asset/www/cordova.js (1035) 01-29 22:18:59.466 8420-8420/com.winter.domain D/CordovaLog﹕ file:///android_asset/www/cordova.js: Line 1036 : processMessage failed: Stack: TypeError: Cannot call method 'get' of undefined

It immediately closes the InAppBrowser when calling popup and gives the following errors. I've changed the URL in the config as i'm using oauthd on my server. There works fine with the Try It button. Acces orgins are * in my config.xml.

wintercounter commented 10 years ago

Sorry, the issue was that i removed localhost from the origins in oauthd.