Verified Commit 0a3baad9 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 f385639b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -127,7 +127,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);