mbkauthe 1.0.25 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/main.js +0 -30
  2. package/package.json +1 -1
package/lib/main.js CHANGED
@@ -48,36 +48,6 @@ const LoginLimit = rateLimit({
48
48
  }
49
49
  });
50
50
 
51
- router.use((req, res, next) => {
52
- // Don't allow embedding in iframes
53
- res.setHeader('X-Frame-Options', 'DENY');
54
-
55
- // Prevent MIME type sniffing
56
- res.setHeader('X-Content-Type-Options', 'nosniff');
57
-
58
- // Enable XSS protection
59
- res.setHeader('X-XSS-Protection', '1; mode=block');
60
-
61
- // Referrer policy
62
- res.setHeader('Referrer-Policy', 'strict-origin-when-cross-origin');
63
-
64
- // Content Security Policy
65
- const csp = [
66
- "default-src 'self'",
67
- "script-src 'self' 'unsafe-inline' https://www.google.com https://www.gstatic.com",
68
- "style-src 'self' 'unsafe-inline'",
69
- "img-src 'self' data:",
70
- "connect-src 'self' https://www.google.com",
71
- "frame-src https://www.google.com",
72
- "form-action 'self'"
73
- ].join('; ');
74
-
75
- res.setHeader('Content-Security-Policy', csp);
76
-
77
- next();
78
- });
79
-
80
-
81
51
  // Configure session with proper domain settings for cross-subdomain sharing
82
52
  const sessionConfig = {
83
53
  store: new PgSession({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mbkauthe",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "MBKTechStudio's reusable authentication system for Node.js applications.",
5
5
  "main": "index.js",
6
6
  "type": "module",