Allow requests from a specific domainv1.0+

Configures the CORS plugin to allow GET and POST requests from a specific domain.

Set up the plugin

Add this section to your kong.yaml configuration file:

kong.yaml
_format_version: "3.0"
plugins:
  - name: cors
    config:
      origins:
      - http://mockbin.com
      methods:
      - GET
      - POST

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!