vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 7f7c9360493c863f7297222b32f49c408ea558e2
parent 037eb0b790b06ebeeead9f9ff9fe802dc05db1e0
Author: dheimerl <34488243+dheimerl@users.noreply.github.com>
Date:   Mon, 17 Dec 2018 22:59:53 -0600

Fixed web.rs
Diffstat:
Msrc/api/web.rs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/api/web.rs b/src/api/web.rs @@ -56,8 +56,8 @@ impl<'r, R: Responder<'r>> Responder<'r> for WebHeaders<R> { res.set_raw_header("X-Frame-Options", "SAMEORIGIN"); res.set_raw_header("X-Content-Type-Options", "nosniff"); res.set_raw_header("X-XSS-Protection", "1; mode=block"); - res.set_raw_header("Content-Security-Policy", "frame-ancestors chrome-extension://*"); - res.set_raw_header("Content-Security-Policy", "frame-ancestors moz-extension://*"); + let csp = "frame-ancestors chrome-extension://nngceckbapebfimnlniiiahkandclblb moz-extension://* ".to_owned() + &CONFIG.domain + ";"; + res.set_raw_header("Content-Security-Policy", csp); Ok(res) },