add nosniff header

This commit is contained in:
Daniel Micay 2019-07-01 01:52:34 -04:00
parent 724474a703
commit b10296cb87
1 changed files with 1 additions and 0 deletions

View File

@ -189,6 +189,7 @@ public class PdfViewer extends AppCompatActivity implements LoaderManager.Loader
HashMap<String, String> headers = new HashMap<String, String>();
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;
}