New version of CSPapplier with function to write CSP header to file.