Skip to content

Instantly share code, notes, and snippets.

@dobegor
Created September 13, 2021 10:22
Show Gist options
  • Save dobegor/456763ed0211c8dfbf8772ecc821dc81 to your computer and use it in GitHub Desktop.
Save dobegor/456763ed0211c8dfbf8772ecc821dc81 to your computer and use it in GitHub Desktop.
apiVersion: getambassador.io/v2
kind: Mapping
metadata:
name: cors
spec:
prefix: /cors/
service: cors-example
cors:
origins: http://foo.example,http://bar.example
methods: POST, GET, OPTIONS
headers: Content-Type
credentials: true
exposed_headers: X-Custom-Header
max_age: "86400"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment