Merge branch 'master' into signer-ui

This commit is contained in:
Tomasz Drwięga
2016-06-02 17:14:15 +02:00
7 changed files with 10 additions and 8 deletions

View File

@@ -17,7 +17,7 @@ env_logger = "0.3"
ws = { git = "https://github.com/ethcore/ws-rs.git" }
ethcore-util = { path = "../util" }
ethcore-rpc = { path = "../rpc" }
parity-minimal-sysui = { path = "../../parity-dapps-minimal-sysui-rs" }
parity-minimal-sysui = { git = "https://github.com/ethcore/parity-dapps-minimal-sysui-rs.git" }
clippy = { version = "0.0.69", optional = true}

View File

@@ -48,6 +48,9 @@ impl ws::Handler for Session {
headers.push(("Connection".into(), b"Closed".to_vec()));
headers.push(("Content-Length".into(), content_len.as_bytes().to_vec()));
headers.push(("Content-Type".into(), f.mime.as_bytes().to_vec()));
if !f.safe_to_embed {
headers.push(("X-Frame-Options".into(), b"SAMEORIGIN".to_vec()));
}
}
Ok(res)
})