Fix proxy UUID validation: reject non-UUID tenant/user IDs and use defaults
The training API client sends X-Tenant-ID: "default" which the proxy was forwarding as-is, causing the backend to return 0 results. Now both proxies validate that tenant/user IDs match UUID format before forwarding, falling back to the configured defaults. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -32,7 +32,7 @@ export default function NewCoursePage() {
|
||||
// AI generation state - module selection
|
||||
const [trainingModules, setTrainingModules] = useState<TrainingModule[]>([])
|
||||
const [selectedModuleId, setSelectedModuleId] = useState('')
|
||||
const [modulesLoading, setModulesLoading] = useState(false)
|
||||
const [modulesLoading, setModulesLoading] = useState(true)
|
||||
|
||||
// Load training modules on mount
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user