From 71d9e80d77c4971300de18fc6adb00adf3a5dd34 Mon Sep 17 00:00:00 2001
From: Frank Sauerburger <frank@sauerburger.com>
Date: Sun, 28 Aug 2022 18:55:26 +0200
Subject: [PATCH] Add CORS header

---
 deployment.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/deployment.yaml b/deployment.yaml
index 319a4ef..57eddde 100644
--- a/deployment.yaml
+++ b/deployment.yaml
@@ -12,7 +12,7 @@ spec:
     secretName: mlflowbasicauth
   docker:
     imageBaseName: gitlab.sauerburger.com:5049/frank/movie-recommender
-    secretName: movie-recommender-token
+    secretName: movie-recommender-token-2
 ---
 apiVersion: v1
 kind: Service
@@ -32,6 +32,8 @@ kind: Ingress
 metadata:
   annotations:
     cert-manager.io/cluster-issuer: "letsencrypt-production"
+    nginx.ingress.kubernetes.io/enable-cors: "true"
+    nginx.ingress.kubernetes.io/cors-allow-origin: 'wakefield.ai'
     kubernetes.io/ingress.class: nginx
   name: "movie-recommender"
 spec:
-- 
GitLab