mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-16 04:09:03 +00:00
Make sure the icons are displayed correctly in desktop clients (#5469)
Some checks are pending
Build / Build and Test ${{ matrix.channel }} (msrv) (push) Waiting to run
Build / Build and Test ${{ matrix.channel }} (rust-toolchain) (push) Waiting to run
Hadolint / Validate Dockerfile syntax (push) Waiting to run
Release / skip_check (push) Waiting to run
Release / docker-build (alpine) (push) Blocked by required conditions
Release / docker-build (debian) (push) Blocked by required conditions
trivy / Check (push) Waiting to run
Some checks are pending
Build / Build and Test ${{ matrix.channel }} (msrv) (push) Waiting to run
Build / Build and Test ${{ matrix.channel }} (rust-toolchain) (push) Waiting to run
Hadolint / Validate Dockerfile syntax (push) Waiting to run
Release / skip_check (push) Waiting to run
Release / docker-build (alpine) (push) Blocked by required conditions
Release / docker-build (debian) (push) Blocked by required conditions
trivy / Check (push) Waiting to run
This commit is contained in:
parent
2c549984c0
commit
1b46c80389
@ -55,7 +55,10 @@ impl Fairing for AppHeaders {
|
|||||||
res.set_raw_header("Referrer-Policy", "same-origin");
|
res.set_raw_header("Referrer-Policy", "same-origin");
|
||||||
res.set_raw_header("X-Content-Type-Options", "nosniff");
|
res.set_raw_header("X-Content-Type-Options", "nosniff");
|
||||||
res.set_raw_header("X-Robots-Tag", "noindex, nofollow");
|
res.set_raw_header("X-Robots-Tag", "noindex, nofollow");
|
||||||
res.set_raw_header("Cross-Origin-Resource-Policy", "same-origin");
|
|
||||||
|
if !res.headers().get_one("Content-Type").is_some_and(|v| v.starts_with("image/")) {
|
||||||
|
res.set_raw_header("Cross-Origin-Resource-Policy", "same-origin");
|
||||||
|
}
|
||||||
|
|
||||||
// Obsolete in modern browsers, unsafe (XS-Leak), and largely replaced by CSP
|
// Obsolete in modern browsers, unsafe (XS-Leak), and largely replaced by CSP
|
||||||
res.set_raw_header("X-XSS-Protection", "0");
|
res.set_raw_header("X-XSS-Protection", "0");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user