walterhiggins / commonjs-modules-javax-script

A simple implementation of require() for use in Java's embedded Javascript engines (JRE 6,7,8)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remote loading?

jamesladd opened this issue · comments

Is it possible to require remote modules?
ie: fetch from some other server rather than local file system.

Maybe even use Java's File with a URI

  • James.

Hi @jamesladd ,

It's not possible to do that right now. I'm not sure I'd add that feature since it would be unwise to run code from untrusted sources.
Walter

Would it be possible to add - I'm running in a sandbox and sources are trusted.

Sent from the holodeck.

On 6 Apr 2014, at 7:08 pm, Walter Higgins notifications@github.com wrote:

Hi @jamesladd ,

It's not possible to do that right now. I'm not sure I'd add that feature since it would be unwise to run code from untrusted sources.
Walter


Reply to this email directly or view it on GitHub.