From 86f950ef53320a321a516163a0d660da94346609 Mon Sep 17 00:00:00 2001 From: Meghan Larson Date: Tue, 27 Jan 2015 08:40:02 -0500 Subject: [PATCH 1/2] Add headers --- config/cors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/cors.js b/config/cors.js index 2b3328d..124ffc0 100644 --- a/config/cors.js +++ b/config/cors.js @@ -74,6 +74,6 @@ module.exports.cors = { * * ***************************************************************************/ - headers: 'content-type,ocp-apim-subscription-key,accept' + headers: 'content-type,ocp-apim-subscription-key,accept,origin,x-requested-with' }; From a76995e7f5ab88d8b690dcdf977b89b939294ff2 Mon Sep 17 00:00:00 2001 From: Meghan Larson Date: Tue, 27 Jan 2015 11:25:50 -0500 Subject: [PATCH 2/2] Go back to using the subscription key in header --- assets/js/app.js | 7 +------ config/cors.js | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/assets/js/app.js b/assets/js/app.js index 6c8cce8..2c8a99e 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -42,12 +42,7 @@ define([ break; } options.url = api + options.url; - options.crossDomain = { - crossDomain: true - }; - options.async = { - async: true - } + options.crossDomain = true; }); // Pass in our Router module and call it's initialize function app.router = Router.initialize(); diff --git a/config/cors.js b/config/cors.js index 124ffc0..2b3328d 100644 --- a/config/cors.js +++ b/config/cors.js @@ -74,6 +74,6 @@ module.exports.cors = { * * ***************************************************************************/ - headers: 'content-type,ocp-apim-subscription-key,accept,origin,x-requested-with' + headers: 'content-type,ocp-apim-subscription-key,accept' };