lua - Basic Kong Plugin - 403 Forbidden when trying to set URI -
i'm trying write basic plugin kong. now, want change destination based on logic. code same base plugin code, except added in foohandler:access function in handler.lua file.
ngx.req.set_uri("http://localhost:8080/openid-connect-server-webapp/token")
however, sending curl request localhost:8000 return 403 forbidden error.
i tried numerous other uris, http, https. tried google, yahoo, , few other localhost ports. far, uri have found works, https://requestb.in/, site displays http requests made it.
i can tell kong 1 blocking requests 403, since requests aren't reaching desired upstream url.
is there sort of limitation on using ngx.req.set_uri()?
Comments
Post a Comment