Verified Commit f1aab64a authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3307227 by immaculatexavier, Niklan: OWASP link for useful HTTP headers is outdated

(cherry picked from commit 23a41f09)
parent de15cd15
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ public function onRespond(ResponseEvent $event) {
    // Prevent browsers from sniffing a response and picking a MIME type
    // different from the declared content-type, since that can lead to
    // XSS and other vulnerabilities.
    // https://www.owasp.org/index.php/List_of_useful_HTTP_headers
    // https://owasp.org/www-project-secure-headers
    $response->headers->set('X-Content-Type-Options', 'nosniff', FALSE);
    $response->headers->set('X-Frame-Options', 'SAMEORIGIN', FALSE);