Merge branch 'master' into signer-ui
This commit is contained in:
@@ -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}
|
||||
|
||||
|
||||
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user