brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [2/4] git commit: allow groovy requests to standby server
Date Fri, 17 Oct 2014 14:36:10 GMT
allow groovy requests to standby server


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/e3bde8a9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/e3bde8a9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/e3bde8a9

Branch: refs/heads/master
Commit: e3bde8a9dfd3f011e62ce2962fe9d795f79e14af
Parents: c3fa580
Author: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Authored: Fri Oct 17 14:42:57 2014 +0100
Committer: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Committed: Fri Oct 17 14:42:57 2014 +0100

----------------------------------------------------------------------
 usage/jsgui/src/main/webapp/assets/js/view/script-groovy.js | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/e3bde8a9/usage/jsgui/src/main/webapp/assets/js/view/script-groovy.js
----------------------------------------------------------------------
diff --git a/usage/jsgui/src/main/webapp/assets/js/view/script-groovy.js b/usage/jsgui/src/main/webapp/assets/js/view/script-groovy.js
index e3fd36d..80ecb8f 100644
--- a/usage/jsgui/src/main/webapp/assets/js/view/script-groovy.js
+++ b/usage/jsgui/src/main/webapp/assets/js/view/script-groovy.js
@@ -81,6 +81,7 @@ define([
                 url:"/v1/script/groovy",
                 data:script,
                 contentType:"application/text",
+                headers: { "Brooklyn-Allow-Non-Master-Access": true },
                 success:function (data) {
                     $(".output .throbber", that.$el).hide()
                     that.updateTextareaWithData($(".output .result"), data.result, true,
true);


Mime
View raw message