Use rack::cors instead of monkey patch.