Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Commit

Permalink
There is lack of CORS (XHR proxy) support for certain HTTP verbs.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
brentlintner committed Jan 17, 2013
1 parent cf425a4 commit 8462f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server/proxy.js
Expand Up @@ -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: []
};
Expand Down

0 comments on commit 8462f02

Please sign in to comment.