Skip to content

Commit

Permalink
Add protocol prefix to check_origin
Browse files Browse the repository at this point in the history
  • Loading branch information
dhrdlicka committed Jan 24, 2024
1 parent 4ebfba4 commit ca9a0b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fly-dev.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ kill_signal = "SIGTERM"
DATABASE_PATH = "/app/swapi.db"
PHX_HOST = "swapi-dev.profiq.com"
PORT = "8080"
CHECK_ORIGIN = '["swapi-dev.profiq.com", "swapi-elixir-dev.fly.dev"]'
CHECK_ORIGIN = '["//swapi-dev.profiq.com", "//swapi-elixir-dev.fly.dev"]'

[http_service]
internal_port = 8080
Expand Down
2 changes: 1 addition & 1 deletion fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ kill_signal = "SIGTERM"
DATABASE_PATH = "/app/swapi.db"
PHX_HOST = "swapi.profiq.com"
PORT = "8080"
CHECK_ORIGIN = '["swapi.profiq.com", "swapi-elixir.fly.dev"]'
CHECK_ORIGIN = '["//swapi.profiq.com", "//swapi-elixir.fly.dev"]'

[http_service]
internal_port = 8080
Expand Down

0 comments on commit ca9a0b7

Please sign in to comment.