当运行离子服务时,我看到:
Gulp startup tasks: [ 'sass', 'watch' ]
Running dev server: http://localhost:8100
Running live reload server: http://localhost:35729
Watching : [ 'www/**/*', '!www/lib/**/*' ]
Ionic server commands, enter:
restart or r to restart the client app from the root
goto or g and a url to have the app navigate to the given url
consolelogs or c to enable/disable console log output
serverlogs or s to enable/disable server log output
quit or q to shutdown the server and exit
Run Code Online (Sandbox Code Playgroud)
这意味着我无法从浏览器访问该应用程序,因为它只侦听localhost.如何将localhost更改为实际的服务器IP?
谢谢
我正在将Firebase的内置oAuth功能用于SPA。
例如,此SPA属于自己的域名 foobar.com
问题是,当打开oauth弹出窗口时,将使用旧foobar.firebaseapp.com域而不是新foobar.com域
我的init看起来像这样
firebase.initializeApp({
apiKey: '...',
authDomain: 'foobar.firebaseapp.com',
databaseURL: 'https://foobar.firebaseio.com',
storageBucket: 'foobar.appspot.com',
messagingSenderId: '123456'
})
Run Code Online (Sandbox Code Playgroud)
我猜authDomain可能与它有关,但是如果我将其更改foobar.com为错误:
code: "auth/popup-closed-by-user", message: "The popup has been closed by the user before finalizing the operation."}
Run Code Online (Sandbox Code Playgroud)
简而言之,有没有一种方法可以自定义Firebase的oAuth网址?