DenoDDeno
Powered by
Mark GM
Denoβ€’8mo ago
Mark G

Is there a way to set the globalThis.location for a Worker

In the same way that
--location
--location
can be used to set the location on the main thread, is there a way to override the location that gets set on a Worker?
We are using Workers to run untrusted user code, and it'd be more desirable to set the location to something other than the URL of the worker module itself.
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Is there a way to handle permission prompts from a worker?
easrngEeasrng / help
13mo ago
Is there a way to read the current raw options for stdin?
cowboydCcowboyd / help
17mo ago
Is there a way to test a request's configuration?
CraigCCraig / help
2y ago
Is there a way to change the default Details of the compiled exe
randomtimetvRrandomtimetv / help
3y ago