These are chat archives for angular/angular-2-ionic-2

30th
Jun 2017
Zurie
@zurie
Jun 30 2017 18:37
@abhibly when you do /Auth in your ionic app, how is it hitting a remote URL
http.post('/Auth') would be localhost/Auth
    return this.http.post(`${this.baseURL}/Auth`,body, options)
  private baseURL = 'https://255.255.255.255:1337/api';
whatever your remote server is
a proxy in Development just rewrites your URL so that it " thinks" the remote is local
assuming you are deploying to the same server, the path would be /
but you aren't if you are in ionic, you are deploying to a webview in a phone