Enable CORS for Tyk Gateway API

Hi @Olu

Thanks for your kind assistance, appreciate it. Tried the following and still getting the same error.

Any idea or further advice? Thanks

{
  "name": "Get API Config List",
  "slug": "get-api-config-list",
  "api_id": "71",
  "org_id": "1",
  "use_keyless": true,
  "definition": {
    "location": "header",
    "key": "x-api-version"
  },
  "version_data": {
    "not_versioned": true,
    "versions": {
       "Default": {
         "name": "Default",
         "use_extended_paths" :true
       }
     }
  },
  "CORS": {
    "enable": true,
    "allowed_origins": [
       "http://localhost:8080"
    ],
    "allowed_methods": [],
    "allowed_headers": [],
    "exposed_headers": [],
    "allowed_credentials": false,
    "max_age": 24,
    "options_passthrough": false,
    "debug": false
  },
  "extended_paths": {
    "transform_headers": [
      {
        "add_headers": { "x-tyk-authorization": "foo" },
        "path": "/api/getAPIConfigList",
        "method": "GET"
      }
    ]
  },
  "proxy": {
    "listen_path": "/api/getAPIConfigList",
    "target_url": "http://localhost:8080/tyk/apis",
    "strip_listen_path": true
  },
  "active": true
}