diff --git a/homeassistant/components/http.py b/homeassistant/components/http.py index 1ec5703c5a3..3ccf92daea2 100644 --- a/homeassistant/components/http.py +++ b/homeassistant/components/http.py @@ -443,3 +443,7 @@ class HomeAssistantView(object): return self.Response(wrap_file(request.environ, fil), mimetype=mimetype, direct_passthrough=True) + + def options(self, request): + """Default handler for OPTIONS (necessary for CORS preflight).""" + return self.Response('', status=200)