When Symfony returns a non-JSON body (empty or HTML) for a 401 on protected API routes, res.json() throws a SyntaxError with no .status, so showLogin() was never called. Now the HTTP status is preserved through JSON parse failures so the 401 check works correctly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .htaccess | ||
| app.js | ||
| index.php | ||
| logo.png | ||
| style.css | ||