UNPKG
preflight
Version:
latest (0.2.0)
0.2.0
0.1.0
preflight requests middleware
github.com/GuillaumeBiton/preflight
GuillaumeBiton/preflight
preflight
/
index.coffee
5 lines
•
186 B
text/coffeescript
View Raw
1
2
3
4
5
module
.exports = -> (req, res,
next
) -> authorization = req.headers.authorization
return
res.send
200
if
not
authorization?
and
req.method
is
"OPTIONS"
next
()