One of the projects I'm working on aims to make it easier to integrate CSP headers into web applicatons.
https://github.com/paragonie/csp-builder
I'm working this week to integrate it into another project we're developing. (It's MIT licensed, so have fun with it.)