Update callback url check

Co-authored-by: Denis Arnst <git@sapd.eu>
This commit is contained in:
advplyr committed 2025-08-10 17:08:25 -05:00
1 parent 2116f60133
commit 99a3867ce9
3 files changed
+64 -3

No files matched your search

+4
View File
@@ -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