Skip to content

Instantly share code, notes, and snippets.

@DanukaPraneeth
Created August 2, 2020 15:16
Show Gist options
  • Save DanukaPraneeth/c0b0ff3ccf3ed3300a214a9963981775 to your computer and use it in GitHub Desktop.
Save DanukaPraneeth/c0b0ff3ccf3ed3300a214a9963981775 to your computer and use it in GitHub Desktop.
apiVersion: configuration.konghq.com/v1
kind: KongClusterPlugin
metadata:
name: cors-plugin
config:
credentials: false
exposed_headers: null
headers:
- Content-Type, Accept
max_age: 3666
methods:
- GET
- POST
origins:
- '*'
preflight_continue: false
enabled: true
run_on: first
protocols:
- http
- https
plugin: cors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment