I try to configure Ingerss type: kong to use different cors for different paths
In the example below, CORS is global for all paths. I need to allow GET for /some/path, and POST for /some/otherPath
paths:
- path: /some/path
backend:
serviceName: service1
servicePort: 8080
- path: /some/otherPath
backend:
serviceName: service2
servicePort: 8080
plugins:
- name: cors
config:
origins: https://something.com
methods:
- POST
- GET