Skip to content

Commit

Permalink
Do not rate limit sanitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
tspenov committed Nov 13, 2024
1 parent 9c75c6d commit 7d6d658
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
Expand Down
4 changes: 3 additions & 1 deletion lib/sanbase_web/graphql/plugs/auth_plug.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d6d658

Please sign in to comment.