Skip to content

Commit 58ad66a

Browse files
authored
fix: support OPTIONS method for CORS (#102)
1 parent 63d16e7 commit 58ad66a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server_terminals/api_handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def post(self) -> None:
6767
class TerminalHandler(TerminalsMixin, TerminalAPIHandler):
6868
"""A handler for a specific terminal."""
6969

70-
SUPPORTED_METHODS = ("GET", "DELETE") # type:ignore[assignment]
70+
SUPPORTED_METHODS = ("GET", "DELETE", "OPTIONS") # type:ignore[assignment]
7171

7272
@web.authenticated
7373
@authorized

0 commit comments

Comments
 (0)