Fixed issue where security headers weren't getting generated properly