Skip to content

Commit

Permalink
fix: improve defaults for dev env CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
ZavenArra committed Nov 3, 2021
1 parent 1a54491 commit 26801a2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions deployment/overlays/development/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ bases:
- ../../base
patchesStrategicMerge:
- database-connection-sealed-secret.yaml
- mapping.yaml
15 changes: 15 additions & 0 deletions deployment/overlays/development/mapping.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
apiVersion: getambassador.io/v2
kind: Mapping
metadata:
name: SERVICE
spec:
cors:
cors:
origins:
- '*'
headers:
- Content-Type
- Authorization
methods:
- 'GET, POST, PATCH, PUT, OPTIONS, DELETE'

0 comments on commit 26801a2

Please sign in to comment.