This commit is contained in:
Jason Calabrese
2016-11-07 22:43:38 -08:00
parent c60920cdad
commit c970cb71a3
+2 -3
View File
@@ -25,10 +25,9 @@ function create (env, ctx) {
res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization, Content-Length, X-Requested-With');
// intercept OPTIONS method
if ('OPTIONS' == req.method) {
if ('OPTIONS' === req.method) {
res.send(200);
}
else {
} else {
next();
}
});