diff --git a/services/traefik/dynamic.yml b/services/traefik/dynamic.yml index a5914eca..27c30f46 100644 --- a/services/traefik/dynamic.yml +++ b/services/traefik/dynamic.yml @@ -25,6 +25,15 @@ http: tls: certResolver: le + api-preflight-io: + rule: Host(`api.truckwash.io`) && Method(`OPTIONS`) + entryPoints: [websecure] + middlewares: [secure-headers] + service: noop@internal + priority: 1000 + tls: + certResolver: le + cloud-preflight: rule: Host(`cloud.truckwash.dk`) && Method(`OPTIONS`) entryPoints: [websecure] @@ -66,6 +75,7 @@ http: accessControlMaxAge: 86400 accessControlAllowOriginList: - "https://truckwash.io" + - "https://api.truckwash.io" - "https://web.truckwash.dk" - "https://api.truckwash.dk" - "https://truckwash.dk"