From d3f1f6868cd9f58a938d4c10dd939a9045bced34 Mon Sep 17 00:00:00 2001 From: Michelle Bu Date: Fri, 29 Aug 2014 01:34:47 -0400 Subject: [PATCH] Allow OPTIONS request --- lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index 213390b..a4bd656 100644 --- a/lib/util.js +++ b/lib/util.js @@ -40,7 +40,7 @@ var util = { }, allowCrossDomain: function(req, res, next) { res.setHeader('Access-Control-Allow-Origin', '*'); - res.setHeader('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE'); + res.setHeader('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS'); res.setHeader('Access-Control-Allow-Headers', 'Content-Type'); next();