Added security headers and improved metadata configuration.