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

[6/50] [abbrv] git commit: The OPTIONS verb was left out in the previous (XHR proxy fix) commit.

The OPTIONS verb was left out in the previous (XHR proxy fix) commit.

It is also an HTTP verb that should be supported by CORS (in the xhr
proxy).

I hastily pushed commit 8462f02fe161f8bf75379a933f62ccefd26903b9
and missed this.


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

Branch: refs/heads/master
Commit: ecd637d2e376650bedc19e32ca16799acd9514a5
Parents: 8462f02
Author: Brent Lintner <br...@gmail.com>
Authored: Thu Jan 17 11:15:55 2013 -0500
Committer: Brent Lintner <br...@gmail.com>
Committed: Thu Jan 17 11:15:55 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/ecd637d2/lib/server/proxy.js
----------------------------------------------------------------------
diff --git a/lib/server/proxy.js b/lib/server/proxy.js
index 0d1c2f0..c58ff41 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', 'PUT', 'DELETE', 'TRACE', 'CONNECT'],
+        methods: ['HEAD', 'GET', 'POST', 'PUT', 'DELETE', 'OPTIONS', 'TRACE', 'CONNECT'],
         credentials: true,
         headers: []
     };