Setting up CORS
This commit is contained in:
parent
b1275edfd0
commit
0cd461db18
4 changed files with 9 additions and 4 deletions
|
@ -1,5 +1,7 @@
|
|||
import DS from 'ember-data';
|
||||
import config from '../config/environment';
|
||||
|
||||
export default DS.RESTAdapter.reopen({
|
||||
namespace: 'api'
|
||||
namespace: 'api',
|
||||
host: config.apiURL
|
||||
});
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
import Ember from 'ember';
|
||||
import Base from 'simple-auth/authenticators/base';
|
||||
import config from '../config/environment';
|
||||
|
||||
export default Base.extend({
|
||||
tokenEndpoint: '/api/authenticate',
|
||||
tokenEndpoint: config.apiURL + '/api/authenticate',
|
||||
|
||||
restore: function(data) {
|
||||
return new Ember.RSVP.Promise(function(resolve, reject) {
|
||||
|
|
Reference in a new issue