Skip to content

Commit

Permalink
Ensure CORS headers are also sent when the application is down
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed Apr 21, 2024
1 parent 9686370 commit cfa24ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ processes = []
handlers = ["tls", "http"]
port = 443

# Ensure CORS headers are also sent when the application is down
[services.ports.http_options.response.headers]
Access-Control-Allow-Origin = "*"
Access-Control-Allow-Methods = "GET, POST, OPTIONS"
Access-Control-Allow-Headers = "*"

[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
Expand Down

0 comments on commit cfa24ed

Please sign in to comment.