Skip to content

Commit

Permalink
fix: add CORS middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
daniejoh committed Nov 4, 2024
1 parent 2f29aaf commit 55878ce
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions deployment/kubernetes/deforestation-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,19 @@ spec:
forceSlash: true
---
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: cors-deforestation
spec:
headers:
accessControlAllowMethods:
- "GET"
accessControlAllowHeaders:
- "*"
accessControlAllowOriginList:
- "*"
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: deforestation-api
Expand All @@ -75,4 +88,5 @@ spec:
port: 80
middlewares:
- name: stripprefix-deforestation
- name: cors-deforestation

0 comments on commit 55878ce

Please sign in to comment.