Fix pre-flight request handling

This resolves the problem where the OPTIONS pre-flight request is being passed to a handler.  This request is intended as a handshake to confirm the ability to make cross-origin requests.  In the case where the client is making an OPTIONS request, it will be preceded by a pre-flight OPTIONS request.