deno-lambda icon indicating copy to clipboard operation
deno-lambda copied to clipboard

DENO_PERMISSIONS - restrict net access only to certain host

Open anandjbangad opened this issue 2 years ago • 1 comments

Hi, I am adding environment variable DENO_PERMISSIONS=--allow-net=google.com,jsonplaceholder.typicode.com,deno.land --allow-env. I just want to allow only 3 hosts. I keep getting an error stating error: Uncaught PermissionDenied: Requires net access to "127.0.0.1:9001", run again with the --allow-net flag.

What am I doing wrong ?

anandjbangad avatar Nov 16 '22 07:11 anandjbangad

if you add 127.0.0.1 (localhost) it should work.

that localhost url is required for the backend machinery of how lambda processes messages.

hayd avatar Nov 16 '22 16:11 hayd