mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
docs: workers inherit permissions by default (#30073)
Closes https://github.com/denoland/deno/issues/30071
This commit is contained in:
parent
a04c632833
commit
c0f9aa0592
1 changed files with 4 additions and 4 deletions
8
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
8
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
|
@ -4406,12 +4406,12 @@ interface WorkerOptions {
|
|||
/** **UNSTABLE**: New API, yet to be vetted.
|
||||
*
|
||||
* Configure permissions options to change the level of access the worker will
|
||||
* have. By default it will have no permissions. Note that the permissions
|
||||
* have. By default it will inherit permissions. Note that the permissions
|
||||
* of a worker can't be extended beyond its parent's permissions reach.
|
||||
*
|
||||
* - `"inherit"` will take the permissions of the thread the worker is created
|
||||
* in.
|
||||
* - `"none"` will use the default behavior and have no permission
|
||||
* - `"inherit"` will use the default behavior and take the permissions of the
|
||||
* thread the worker is created in
|
||||
* - `"none"` will have no permissions
|
||||
* - A list of routes can be provided that are relative to the file the worker
|
||||
* is created in to limit the access of the worker (read/write permissions
|
||||
* only)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue