2017-01-15 8 views
1

実行ionic serveに次のメッセージが表示されます。しかし、私は紺碧でfacebookのログインがあり、CORSはlocalhostしか受け入れません。 IPアドレスをlocalhostに変更する方法ですか?`ionic serve`をIPの代わりにlocalhostを使うように変更するには?

Running live reload server: http://192.168.0.5:35729 
Watching: www/**/*, !www/lib/**/*, !www/**/*.map 
√ Running dev server: http://192.168.0.5:8100 
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 

答えて

3

ionic serve --address localhostが有効です。

関連する問題