[#8470] removed config globlas for csp and updated middleware code
2 files changed