mirror of
https://github.com/R0m1k3/xtremobile.git
synced 2026-10-11 17:29:26 +02:00
Merge pull request #72 from R0m1k3/antigravity
feat: add security middleware for headers, honeypot, and rate limiting.
This commit is contained in:
commit
2841a90f5c
1 file changed
+1
-1
@@ -17,7 +17,7 @@ Middleware securityHeadersMiddleware() {
|
||||
|
||||
return response.change(headers: {
|
||||
'X-Content-Type-Options': 'nosniff',
|
||||
'X-Frame-Options': 'DENY',
|
||||
'X-Frame-Options': 'SAMEORIGIN', // Changed from DENY to allow embedding player.html
|
||||
'X-XSS-Protection': '1; mode=block',
|
||||
'Strict-Transport-Security': 'max-age=63072000; includeSubDomains; preload',
|
||||
'Referrer-Policy': 'strict-origin-when-cross-origin',
|
||||
|
||||
Reference in new issue
Block a user