Does a Drush command exist which I can use to setup the Security Kit module? Something like this command:

drush seckit --img-src:self,unsafe-inline?


You could update the Security Kit settings via the config-set command:

drush config-set seckit.settings seckit_xss.csp.img-src "'self' 'unsafe-inline'"

You can find the available configuration keys by looking at Security Kit's default configuration file, config/install/seckit.settings.yml, or you can view your site's current settings through the config export page.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.