From 7c8bf8f981f97372f72f7876db7ff5ab8da4d440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rio=20Rodrigues?= Date: Thu, 9 Nov 2023 20:01:26 +0000 Subject: [PATCH] chore: implement suggestions --- .tool-versions | 2 +- lib/safira_web/cors.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.tool-versions b/.tool-versions index 39c1949fb..72e53aa95 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,3 +1,3 @@ elixir 1.14.1-otp-25 -erlang 25.2.3 +erlang 25.1.2 nodejs 18.12.0 diff --git a/lib/safira_web/cors.ex b/lib/safira_web/cors.ex index cadb1ec25..a3ec363f1 100644 --- a/lib/safira_web/cors.ex +++ b/lib/safira_web/cors.ex @@ -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,