DEV Community

Discussion on: [GitHub] A basic REST API example with Deno and Oak

Collapse
 
mikenikles profile image
Mike • Edited

If you use --allow-net, the server gets full access to all URLs. The following is a lot more secure:

deno run --allow-net=:5000 server.ts

Also see deno.land/manual/getting_started/p....

I opened a PR on your repo to update the documentation accordingly.

Collapse
 
tudor44 profile image
Gaetano D'Orsi

Good I have updated the repository thanks for suggestion!