You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ripple.apache.org by gt...@apache.org on 2013/03/11 16:11:06 UTC

[5/50] [abbrv] git commit: There is lack of CORS (XHR proxy) support for certain HTTP verbs.

There is lack of CORS (XHR proxy) support for certain HTTP verbs.

This (presumably) adds support for the rest of the verbs, which were
left out when the proxy was re-written :-( (there definitely could have
been more testing in place for this, alas, resources..).

This fixes GitHub issue:

https://github.com/blackberry/Ripple-UI/issues/693


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

Branch: refs/heads/master
Commit: 8462f02fe161f8bf75379a933f62ccefd26903b9
Parents: cf425a4
Author: Brent Lintner <br...@gmail.com>
Authored: Thu Jan 17 11:05:07 2013 -0500
Committer: Brent Lintner <br...@gmail.com>
Committed: Thu Jan 17 11:11:59 2013 -0500

----------------------------------------------------------------------
 lib/server/proxy.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/8462f02f/lib/server/proxy.js
----------------------------------------------------------------------
diff --git a/lib/server/proxy.js b/lib/server/proxy.js
index 62ddc9e..0d1c2f0 100644
--- a/lib/server/proxy.js
+++ b/lib/server/proxy.js
@@ -132,7 +132,7 @@ function jsonpXHRProxyHandler(req, res/*, next*/) {
 function start(options, app) {
     var corsOptions = {
         origins: ["*"],
-        methods: ['HEAD', 'GET', 'POST'],
+        methods: ['HEAD', 'GET', 'POST', 'PUT', 'DELETE', 'TRACE', 'CONNECT'],
         credentials: true,
         headers: []
     };