mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-12-04 22:16:28 +01:00
1 parent
2116f60133
commit
99a3867ce9
3 files changed
+64
-3
No files matched your search
@@ -229,6 +229,10 @@ class Server {
|
||||
res.setHeader('Content-Security-Policy', "frame-ancestors 'self'")
|
||||
}
|
||||
|
||||
// Security: Prevent referrer leakage to protect against token exposure
|
||||
// Using 'no-referrer' to completely prevent token leakage in referer headers
|
||||
res.setHeader('Referrer-Policy', 'no-referrer')
|
||||
|
||||
/**
|
||||
* @temporary
|
||||
* This is necessary for the ebook & cover API endpoint in the mobile apps
|
||||
|
||||
Reference in new issue
Block a user