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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -