restrict browser permissions on API responses
This commit is contained in:
@@ -627,6 +627,7 @@ function json(res, code, body) {
|
||||
'Cache-Control': 'no-store',
|
||||
'X-Content-Type-Options': 'nosniff',
|
||||
'Referrer-Policy': 'no-referrer',
|
||||
'Permissions-Policy': 'camera=(), microphone=(), geolocation=()',
|
||||
};
|
||||
const origin = res.__ihaleistCorsOrigin;
|
||||
if (CORS_ORIGINS.length) headers.Vary = 'Origin';
|
||||
|
||||
Reference in New Issue
Block a user