diff --git a/devspc/devspace-apiregistry-core-service/templates/configmap.yaml b/devspc/devspace-apiregistry-core-service/templates/configmap.yaml index 2f43e96..bfb93be 100644 --- a/devspc/devspace-apiregistry-core-service/templates/configmap.yaml +++ b/devspc/devspace-apiregistry-core-service/templates/configmap.yaml @@ -5,6 +5,13 @@ metadata: data: application.yaml: | spring: + mvc: + cors: + allowed-origins: "*" + allowed-methods: GET, POST, PUT, DELETE, OPTIONS + allowed-headers: "*" + allow-credentials: true + max-age: 1800 application: name: {{$.Release.Name}} datasource: diff --git a/devspc/devspace-apiregistry-core-service/templates/ingress.yaml b/devspc/devspace-apiregistry-core-service/templates/ingress.yaml index 1295ee8..68f70a5 100644 --- a/devspc/devspace-apiregistry-core-service/templates/ingress.yaml +++ b/devspc/devspace-apiregistry-core-service/templates/ingress.yaml @@ -3,8 +3,8 @@ kind: Ingress metadata: name: {{$.Release.Name}}-{{$.Values.name}} namespace: {{$.Release.Namespace}} - annotations: - traefik.ingress.kubernetes.io/router.middlewares: {{$.Release.Namespace}}-{{$.Release.Name}}-cors@kubernetescrd +{{/* annotations:*/}} +{{/* traefik.ingress.kubernetes.io/router.middlewares: {{$.Release.Namespace}}-{{$.Release.Name}}-cors@kubernetescrd*/}} spec: rules: - host: {{tpl $.Values.ingress.host .}}