Hey all , I have been exploring Growthbook for cou...
# announcements
a
Hey all , I have been exploring Growthbook for couple of days , i have couple of questions that i didnt get answers for in the documentation that i read so far 1 : Is it some how also possible to send mutations of JS like css and html via code or visual editor ? 2: If i want to restrict production toggle to only some users can i do that ? Thank you in advance
f
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
Hey @future-teacher-7046 👋! Is there a way to inject JS through the visual editor or any other way without dev work?
f
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.
❤️ 1