Skip to content

Commit 69eb1f9

Browse files
authored
remove CORS origin trailing slash (#13)
this is not accepted by the ingress and falls back to wildcard
1 parent 3e088df commit 69eb1f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/kubernetes/overlays/production/ingress.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ metadata:
1313
external-dns.alpha.kubernetes.io/hostname: <% index .Params `productionBackendSubdomain` %><% index .Params `productionHostRoot` %>
1414
# CORS
1515
nginx.ingress.kubernetes.io/enable-cors: "true"
16-
nginx.ingress.kubernetes.io/cors-allow-origin: "https://<% index .Params `productionFrontendSubdomain` %><% index .Params `productionHostRoot` %>/"
16+
nginx.ingress.kubernetes.io/cors-allow-origin: "https://<% index .Params `productionFrontendSubdomain` %><% index .Params `productionHostRoot` %>"
1717

1818
spec:
1919
rules:

templates/kubernetes/overlays/staging/ingress.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ metadata:
1313
external-dns.alpha.kubernetes.io/hostname: <% index .Params `stagingBackendSubdomain` %><% index .Params `stagingHostRoot` %>
1414
# CORS
1515
nginx.ingress.kubernetes.io/enable-cors: "true"
16-
nginx.ingress.kubernetes.io/cors-allow-origin: "https://<% index .Params `stagingFrontendSubdomain` %><% index .Params `stagingHostRoot` %>/"
16+
nginx.ingress.kubernetes.io/cors-allow-origin: "https://<% index .Params `stagingFrontendSubdomain` %><% index .Params `stagingHostRoot` %>"
1717

1818
spec:
1919
rules:

0 commit comments

Comments
 (0)