Skip to content

Commit

Permalink
Add cors plugin and headers for bulk (#403)
Browse files Browse the repository at this point in the history
Co-authored-by: Somanath Hugar <[email protected]>
  • Loading branch information
somanath21 and Somanath Hugar authored Mar 13, 2024
1 parent 8fa12a1 commit af9e532
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion helm/g2p-sandbox/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ ph-ee-engine:
konghq.com/protocol: "https"
ingress:
enabled: false
annotations:
konghq.com/plugins: cors
kubernetes.io/ingress.class: kong
tls:
- secretName: sandbox-secret
hosts:
Expand Down Expand Up @@ -487,7 +490,7 @@ ph-ee-engine:
enabled: false
annotations:
nginx.ingress.kubernetes.io/access-control-allow-origin: 'true'
nginx.ingress.kubernetes.io/cors-allow-headers: 'x-registering-institution-id'
nginx.ingress.kubernetes.io/cors-allow-headers: 'x-registering-institution-id, content-type, X-CallbackURL'
nginx.ingress.kubernetes.io/cors-allow-methods: PUT, GET, POST, OPTIONS, DELETE
nginx.ingress.kubernetes.io/cors-allow-origin: '*'
nginx.ingress.kubernetes.io/enable-cors: 'true'
Expand Down
2 changes: 1 addition & 1 deletion helm/ph-ee-engine/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2001,7 +2001,7 @@ kong:
credentials: true
max_age: 3600
exposed_headers :
- "X-Auth-Token"
- "*"
preflight_continue: false
- apiVersion: configuration.konghq.com/v1
kind: KongClusterPlugin
Expand Down

0 comments on commit af9e532

Please sign in to comment.