I have Mod_headers installed and active on my server, I know that Craft adds some headers from PHP but only for Control Panel requests. How can I add security headers to the front-end?

Thank you

1 Answer 1


Since you mentioned mod_headers, you can add headers at the web-server level using .htaccess and Apache's header set command: https://httpd.apache.org/docs/2.4/mod/mod_headers.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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