This repository includes a CI/CD pipeline for Dynamic Application Security Testing (DAST) using OWASP ZAP.
Risk: Without this header, browsers may try to MIME-sniff responses and interpret them as executable content, increasing the risk of XSS attacks.
Fix: Added the following header in the Go app middleware:
c.Writer.Header().Set("X-Content-Type-Options", "nosniff")Risk: Lack of proper isolation headers may leave your app open to speculative execution attacks (e.g., Spectre), especially in multi-origin contexts.
Fix: Set the following header to limit cross-origin access to resources:
c.Writer.Header().Set("Cross-Origin-Resource-Policy", "same-origin")