Remove stale dev code

This was used to get around direct requests to clients. The UI will
now automatically route through the server.
This commit is contained in:
Michael Lange 2018-05-07 16:53:23 -07:00
parent af15dda45a
commit 4d9859103f

View file

@ -9,12 +9,6 @@ export default ApplicationSerializer.extend({
},
normalize(modelClass, hash) {
// Proxy local agent to the same proxy express server Ember is using
// to avoid CORS
if (this.get('config.isDev') && hash.HTTPAddr === '127.0.0.1:4646') {
hash.HTTPAddr = '127.0.0.1:4200';
}
return this._super(modelClass, hash);
},