fix cors
All checks were successful
Build and Publish / build-release (push) Successful in 1m17s

This commit is contained in:
2026-04-16 16:10:01 -05:00
parent 844fc35088
commit 3a22776568
3 changed files with 8 additions and 1 deletions

View File

@@ -14,6 +14,11 @@ config :logger, level: logger_level
config :logger, :console, format: {Logger.Formatter, :format}
cors_origin = System.get_env("CORS_ORIGIN", "*")
config :cors_plug,
origin: cors_origin
if System.get_env("PHX_SERVER") do
config :customer_service, CustomerServiceWeb.Endpoint, server: true
end