Skip to content

Commit

Permalink
Add iframe support for terminals
Browse files Browse the repository at this point in the history
  • Loading branch information
nviennot committed Mar 21, 2020
1 parent 233a9a6 commit 71c5abb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tmate_web/controllers/terminal_controller.ex
Expand Up @@ -8,6 +8,7 @@ defmodule TmateWeb.TerminalController do
def show(conn, %{"token" => token_path}) do
token = Enum.join(token_path, "/") # tokens can have /, and comes in as an array
conn
|> delete_resp_header("x-frame-options") # so it's embeddable in iframes.
|> render("show.html", token: token)
end

Expand Down

0 comments on commit 71c5abb

Please sign in to comment.