Setting up CORS

This commit is contained in:
Matthew Dillon 2015-01-27 16:33:20 -09:00
parent b1275edfd0
commit 0cd461db18
4 changed files with 9 additions and 4 deletions

View file

@ -26,8 +26,10 @@ module.exports = function(environment) {
ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
// ENV.APP.LOG_VIEW_LOOKUPS = true;
ENV['simple-auth'] = {
authorizer: 'authorizers:custom'
authorizer: 'authorizers:custom',
crossOriginWhitelist: ['http://127.0.0.1:8901']
}
ENV.apiURL = 'http://127.0.0.1:8901';
}
if (environment === 'test') {