1. You could in theory set a javascript string as the value of a feature and eval it on the client, but it's usually not the best idea from a security point of view.
2. Yes, if you give someone the
engineer
role, you can restrict access to specific environments. This does require a paid GrowthBook license though
👍 1
l
lemon-flower-28118
02/03/2023, 1:05 PM
Hey @future-teacher-7046 👋! Is there a way to inject JS through the visual editor or any other way without dev work?
f
future-teacher-7046
02/03/2023, 8:42 PM
No, that's not possible currently. You could in theory make a feature flag with JavaScript code as the value and eval it on the front end, but that can open up some pretty big security holes, so I wouldn't recommend it.