From 58ad66a5ce0bca03f6c569b32a8bef9c1bdccd2b Mon Sep 17 00:00:00 2001 From: zhanba Date: Tue, 26 Dec 2023 23:01:27 +0800 Subject: [PATCH] fix: support OPTIONS method for CORS (#102) --- jupyter_server_terminals/api_handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyter_server_terminals/api_handlers.py b/jupyter_server_terminals/api_handlers.py index 7822e03..e0e84ce 100644 --- a/jupyter_server_terminals/api_handlers.py +++ b/jupyter_server_terminals/api_handlers.py @@ -67,7 +67,7 @@ def post(self) -> None: class TerminalHandler(TerminalsMixin, TerminalAPIHandler): """A handler for a specific terminal.""" - SUPPORTED_METHODS = ("GET", "DELETE") # type:ignore[assignment] + SUPPORTED_METHODS = ("GET", "DELETE", "OPTIONS") # type:ignore[assignment] @web.authenticated @authorized