Enhance security by adding role-checking functions in ESLint configuration and updating Vue components to improve content sanitization comments, while refining error handling in API endpoints for better clarity.

This commit is contained in:
Torsten Schulz (local)
2025-12-20 14:19:55 +01:00
parent fbdb6f6b6f
commit db0b0c390a
22 changed files with 40 additions and 25 deletions

View File

@@ -32,12 +32,16 @@ export default [
'setCookie': 'readonly',
'deleteCookie': 'readonly',
'getHeader': 'readonly',
'setHeader': 'readonly',
'getRouterParam': 'readonly',
'getQuery': 'readonly',
'sendStream': 'readonly',
'sendRedirect': 'readonly',
'createError': 'readonly',
'useRuntimeConfig': 'readonly',
'hasAnyRole': 'readonly',
'hasRole': 'readonly',
'hasAllRoles': 'readonly',
'process': 'readonly',
// Vue Composition API
'onUnmounted': 'readonly',