Skip to content

Commit

Permalink
Workspace: Forward all standard HTTP request methods (pwncollege#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorNelson authored and mudongliang committed May 15, 2024
1 parent 5a217aa commit 3f47c33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dojo_plugin/pages/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def view_workspace(service):

@workspace.route("/workspace/<service>/", websocket=True)
@workspace.route("/workspace/<service>/<path:service_path>", websocket=True)
@workspace.route("/workspace/<service>/")
@workspace.route("/workspace/<service>/<path:service_path>")
@workspace.route("/workspace/<service>/", methods=["GET", "HEAD", "POST", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"])
@workspace.route("/workspace/<service>/<path:service_path>", methods=["GET", "HEAD", "POST", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"])
@authed_only
@bypass_csrf_protection
def forward_workspace(service, service_path=""):
Expand Down

0 comments on commit 3f47c33

Please sign in to comment.