Skip to content

Commit

Permalink
chore: implement suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRodrigues10 committed Nov 9, 2023
1 parent 1dc844f commit 7c8bf8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
elixir 1.14.1-otp-25
erlang 25.2.3
erlang 25.1.2
nodejs 18.12.0
2 changes: 1 addition & 1 deletion lib/safira_web/cors.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule SafiraWeb.CORS do
@domain System.get_env("CORS_DOMAIN")

use Corsica.Router,
origins: ["http://localhost:3000"],
origins: ~r{^https?::#{@domain}},
log: [rejected: :error, invalid: :warn, accepted: :debug],
allow_headers: :all,
allow_credentials: true,
Expand Down

0 comments on commit 7c8bf8f

Please sign in to comment.