fix:동기화 페이지 CSRF 및 인증 문제 수정

- CSRF 예외에 common-code-sync/*, category-sync/* 추가
- fetch 요청에 credentials: 'same-origin' 추가
- 메뉴 동기화 시 menu_id 파싱 방식 수정 (value → dataset.menuId)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-29 06:57:42 +09:00
parent 6d708cfdda
commit 60ab03601f
4 changed files with 9 additions and 1 deletions

View File

@@ -24,6 +24,8 @@
// CSRF 토큰 검증 예외 (외부 API 호출용)
$middleware->validateCsrfTokens(except: [
'menu-sync/*',
'common-code-sync/*',
'category-sync/*',
]);
// web 미들웨어 그룹에 자동 재인증 추가