Skip to content

Commit

Permalink
fix(server): cors
Browse files Browse the repository at this point in the history
  • Loading branch information
RyushiAok committed Nov 5, 2023
1 parent d613689 commit 8fac891
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion server/src/Api/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,15 @@ let main _ =
fun builder ->
builder.AllowAnyHeader() |> ignore
builder.AllowAnyMethod() |> ignore
builder.AllowAnyOrigin() |> ignore

builder.WithOrigins(
[|
env.client_url
"http://localhost"
"https://duck-stream.vercel.app"
|]
)
|> ignore
))

endpoints [
Expand Down

0 comments on commit 8fac891

Please sign in to comment.