From cfa24edcdea3110a981998fd9efb718752af1843 Mon Sep 17 00:00:00 2001 From: spawnia Date: Sun, 21 Apr 2024 18:00:25 +0200 Subject: [PATCH] Ensure CORS headers are also sent when the application is down --- fly.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fly.toml b/fly.toml index 366592f..a98d348 100644 --- a/fly.toml +++ b/fly.toml @@ -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"