Skip to content
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

Limit Javascript #571

Open
Sundarcj opened this issue Nov 11, 2021 · 2 comments
Open

Limit Javascript #571

Sundarcj opened this issue Nov 11, 2021 · 2 comments

Comments

@Sundarcj
Copy link

Hi Team,
I'm looking for an Embedded JS Script Executor in java. recently came across J2V8. i don't know where to look for the J2V8 Forum. so i will post my query here.

I have a use case , where user will write JS Script i need to run these scripts in Java.
Using J2V8 Callback / Java Binding method i'm able to provide our own functions for user to access the data.

But we want to limit user script features. like we want to restrict XHR, Async Events (settimeout,setinterval,etc..) ,unnecessary DOM related operations ( i hope j2v8 wont support DOM because it is running on server).
and detecting infinite loop. ( may be some kind of timeout ).

Can anyone share documents / procedures to achieve these?

Thanks

@newk5
Copy link

newk5 commented Nov 12, 2021

I'd suggest looking into Javet , I believe it supports everything you need

@Sundarcj
Copy link
Author

Thank you @newk5 will check Javet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants