diff --git a/config/runtime.exs b/config/runtime.exs index 3d4bdd6205..1dec374bb4 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -86,6 +86,7 @@ if config_env() == :prod do check_origin: [ "//*.santiment.net", "//*.sanr.app", + "//*.sanitizer.page", "//*.sanbase-admin.stage.san", "//*.sanbase-admin.production.san" ] diff --git a/lib/sanbase_web/graphql/plugs/auth_plug.ex b/lib/sanbase_web/graphql/plugs/auth_plug.ex index f81b819c17..f0a2c28f5d 100644 --- a/lib/sanbase_web/graphql/plugs/auth_plug.ex +++ b/lib/sanbase_web/graphql/plugs/auth_plug.ex @@ -422,7 +422,9 @@ defmodule SanbaseWeb.Graphql.AuthPlug do defp get_no_auth_product_id(nil), do: @product_id_api defp get_no_auth_product_id(origin) do - case String.ends_with?(origin, "santiment.net") or String.ends_with?(origin, "sanr.app") do + case String.ends_with?(origin, "santiment.net") or + String.ends_with?(origin, "sanr.app") or + String.ends_with?(origin, "sanitize.page") do true -> @product_id_sanbase false -> @product_id_api end