Skip to content

Commit

Permalink
fix: support OPTIONS method for CORS (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanba authored Dec 26, 2023
1 parent 63d16e7 commit 58ad66a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_server_terminals/api_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 58ad66a

Please sign in to comment.