docs: workers inherit permissions by default (#30073)

Closes https://github.com/denoland/deno/issues/30071
This commit is contained in:
David Sherret 2025-07-10 20:09:12 -04:00 committed by GitHub
parent a04c632833
commit c0f9aa0592
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)