Skip to content

Commit

Permalink
Add CORS middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
aelred committed Oct 31, 2023
1 parent 6ba90a0 commit f2beb09
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion deploy/manifests/tetris-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit f2beb09

Please sign in to comment.