From b10296cb87edeb0e7fb5a51ecf88ea3dd241cc28 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 1 Jul 2019 01:52:34 -0400 Subject: [PATCH] add nosniff header --- app/src/main/java/org/grapheneos/pdfviewer/PdfViewer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/org/grapheneos/pdfviewer/PdfViewer.java b/app/src/main/java/org/grapheneos/pdfviewer/PdfViewer.java index a54b500..3393508 100644 --- a/app/src/main/java/org/grapheneos/pdfviewer/PdfViewer.java +++ b/app/src/main/java/org/grapheneos/pdfviewer/PdfViewer.java @@ -189,6 +189,7 @@ public class PdfViewer extends AppCompatActivity implements LoaderManager.Loader HashMap headers = new HashMap(); headers.put("Content-Security-Policy", CONTENT_SECURITY_POLICY); headers.put("Feature-Policy", FEATURE_POLICY); + headers.put("X-Content-Type-Options", "nosniff"); response.setResponseHeaders(headers); return response; }