Skip to content

Commit

Permalink
fix: open cors for dev in the correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
ZavenArra committed Dec 18, 2021
1 parent 2fa8b21 commit fa7be4c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 0 additions & 4 deletions deployment/base/mapping.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,3 @@ spec:
prefix: /treetracker/
service: treetracker-api
rewrite: /
cors:
origins: '*'
methods: GET, POST, PATCH, OPTIONS
headers: Content-Type
1 change: 1 addition & 0 deletions deployment/overlays/development/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ patchesStrategicMerge:
- database-connection-sealed-secret.yaml
- database-migration-connection-sealed-secret.yaml
- deployment.yaml
- mapping.yaml
9 changes: 9 additions & 0 deletions deployment/overlays/development/mapping.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: getambassador.io/v2
kind: Mapping
metadata:
name: treetracker-api
spec:
cors:
origins: '*'
methods: GET, POST, PATCH, OPTIONS
headers: Content-Type

0 comments on commit fa7be4c

Please sign in to comment.