Commit ab3098d6 authored by Ad Schellevis's avatar Ad Schellevis

(openvpn client export) add X-Content-Type-Options: nosniff header, closes...

(openvpn client export) add X-Content-Type-Options: nosniff header, closes https://github.com/opnsense/core/issues/1204
parent 888b9a22
......@@ -252,6 +252,7 @@ if (isset($config['openvpn']['openvpn-server'])) {
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename={$exp_name}");
header("Content-Length: $exp_size");
header("X-Content-Type-Options: nosniff");
if (($act == "conf") || (substr($act, 0, 10) == "confinline")) {
echo $exp_path;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment