This project has moved and is read-only. For the latest updates, please go here.

Restrict object access by default

Apr 11, 2015 at 3:49 PM
Is there any way to disable all access to object members (methods, properties, etc) passed to Javascript by default, unless they have an associated ScriptMember attribute? I hope I'm not missing something, but I've looked all over and didn't find a way to do it. I prefer the whitelist approach of allowing access to members.
Coordinator
Apr 13, 2015 at 3:28 AM
Greetings!

Currently member access can only be disabled at the individual member level. ClearScript 5.4.2 will provide a way to disable it at the type and engine/global levels.

Cheers!
Apr 13, 2015 at 12:41 PM
Good to know. Thanks for getting back to me on this. :)