-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Whitelist "blob" and "data" schemes for Workers #5683
Comments
"blob"
and "data"
schemes for Workers
This would be nice. I'm working on a project where I need to dynamically spawn threads. I've attempted to use this method and received the same error. I attempted to make a worker that allows me to pass the model in and use dynamic imports to load the code and still get the same error. The only other option I see is to create an internal HTTP Server that will serve the worker code. (I'd prefer not to do this because its bulky) but there is a huge need to be able to create Workers from code for our product. Its not only whitelisting the blob and data urls but URL.createObjectURL was removed in 1.4.1 (not sure why as its in the spec). I'm using 1.4.5 right now. |
As of 1.7 we have support for Supporting blob/Object URLs is a lot more complex and so I have split if off as a suggestion in #9210. Closing this issue in lieu of that one. |
On
deno 1.0.1 v8 8.4.300 typescript 3.9.2
results in the following unsupported scheme error:Workers from Blob URLs is expected to work from what I see in #2726 and #2729.
Can the
"blob"
and"data"
schemes be whitelisted for Deno Workers?The text was updated successfully, but these errors were encountered: