Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DENO_PERMISSIONS - restrict net access only to certain host #212

Open
anandjbangad opened this issue Nov 16, 2022 · 1 comment
Open

DENO_PERMISSIONS - restrict net access only to certain host #212

anandjbangad opened this issue Nov 16, 2022 · 1 comment

Comments

@anandjbangad
Copy link

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 ?

@hayd
Copy link
Contributor

hayd commented Nov 16, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants