mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-07 20:16:31 +08:00
Enable CORS for health check (#600)
This commit is contained in:
parent
861fc3110b
commit
5131a9e683
1 changed files with 3 additions and 1 deletions
|
@ -4,7 +4,9 @@ defmodule LivebookWeb.HealthController do
|
|||
def index(conn, _params) do
|
||||
version = Application.spec(:livebook, :vsn) |> List.to_string()
|
||||
|
||||
json(conn, %{
|
||||
conn
|
||||
|> put_resp_header("Access-Control-Allow-Origin", "*")
|
||||
|> json(%{
|
||||
"application" => "livebook",
|
||||
"version" => version
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue