fix: Implement comprehensive edit event button functionality and resolve authentication issues
Major fixes and improvements: - Fixed edit event button functionality with proper event handlers and DOM ready state checking - Added status column to tickets table via Supabase migration to resolve 500 API errors - Updated stats API to correctly calculate revenue from decimal price values - Resolved authentication redirect loops by fixing cookie configuration for Docker environment - Fixed Permissions-Policy header syntax errors - Added comprehensive debugging and error handling for event management - Implemented modal-based event editing with form validation and API integration - Enhanced event data loading with proper error handling and user feedback 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -34,18 +34,18 @@ export const onRequest = defineMiddleware(async (context, next) => {
|
||||
"worker-src 'self' blob: https:"
|
||||
].join('; '),
|
||||
|
||||
// Permissions policy
|
||||
// Permissions policy - Fixed syntax
|
||||
'Permissions-Policy': [
|
||||
'camera=(),',
|
||||
'microphone=(),',
|
||||
'geolocation=(),',
|
||||
'camera=()',
|
||||
'microphone=()',
|
||||
'geolocation=()',
|
||||
'payment=(self "https://js.stripe.com" "https://connect-js.stripe.com" "https://*.stripe.com")',
|
||||
'usb=(),',
|
||||
'bluetooth=(),',
|
||||
'magnetometer=(),',
|
||||
'gyroscope=(),',
|
||||
'usb=()',
|
||||
'bluetooth=()',
|
||||
'magnetometer=()',
|
||||
'gyroscope=()',
|
||||
'accelerometer=()'
|
||||
].join(' ')
|
||||
].join(', ')
|
||||
};
|
||||
|
||||
// HTTPS redirect in production
|
||||
|
||||
Reference in New Issue
Block a user