Context
The current DurianPy website has been flagged for missing essential HTTP security headers. These headers are critical for protecting our users from cross-site scripting (XSS), clickjacking, and other common web vulnerabilities. Additionally, the X-Powered-By header is currently visible, which leaks technology stack information to potential attackers.
Task
Serve strict HTTP security headers with every response so that we can improve our security posture.
Hint
Refer to the official documentation for implementation details: https://nextjs.org/docs/app/api-reference/config/next-config-js/headers
Context
The current DurianPy website has been flagged for missing essential HTTP security headers. These headers are critical for protecting our users from cross-site scripting (XSS), clickjacking, and other common web vulnerabilities. Additionally, the X-Powered-By header is currently visible, which leaks technology stack information to potential attackers.
Task
Serve strict HTTP security headers with every response so that we can improve our security posture.
Hint
Refer to the official documentation for implementation details: https://nextjs.org/docs/app/api-reference/config/next-config-js/headers