diff --git a/deploy/manifests/tetris-server.yml b/deploy/manifests/tetris-server.yml index 3e2ecea..11bec4f 100644 --- a/deploy/manifests/tetris-server.yml +++ b/deploy/manifests/tetris-server.yml @@ -53,7 +53,7 @@ metadata: namespace: default annotations: cert-manager.io/cluster-issuer: letsencrypt - ingress.kubernetes.io/custom-request-headers: "Access-Control-Allow-Origin: https://tetris.ael.red" + traefik.ingress.kubernetes.io/router.middlewares: tetris-server-cors spec: tls: - hosts: @@ -71,6 +71,15 @@ spec: port: number: 8000 --- +apiVersion: traefik.io/v1alpha1 +kind: Middleware +metadata: + name: tetris-server-cors +spec: + headers: + accessControlAllowOriginList: + - "https://tetris.ael.red" +--- apiVersion: v1 kind: PersistentVolumeClaim metadata: