https://designer.krakend.io/#!/service
https://github.com/krakendio/krakend-cors/issues/9
https://www.krakend.io/docs/service-settings/cors/
cd /opt/krakend/conf cat <<'EOF'>krakend.json { "$schema": "https://www.krakend.io/schema/v3.json", "version": 3, "name": "KrakenD - API Gateway", "extra_config": { "security/cors": { "allow_origins": [ "*" ], "expose_headers": [ "Content-Length" ], "max_age": "12h", "allow_methods": [ "GET", "HEAD", "POST" ], "allow_credentials": true } }, "timeout": "3000ms", "cache_ttl": "300s", "output_encoding": "json", "endpoints": [ { "endpoint": "/v1/test", "method": "GET", "output_encoding": "json", "backend": [ { "url_pattern": "/", "encoding": "json", "sd": "static", "method": "GET", "host": [ "http://192.168.1.255:9200" ], "disable_host_sanitize": false } ] } ] } EOF chmod +x krakend.json