refactor: tRPC 조회 입력을 JSON 본문으로 전송

브라우저의 Gateway·Game tRPC 클라이언트를 POST JSON 전송으로 통일하고 서버의 query method override를 허용한다. GET mutation 거부 계약과 production Chromium 요청 형태를 회귀 테스트로 고정한다.
This commit is contained in:
2026-08-17 11:12:02 +00:00
parent e3931602cc
commit 2d302a5f91
16 changed files with 135 additions and 20 deletions
+12
View File
@@ -0,0 +1,12 @@
/**
* tRPC keeps procedure semantics in its envelope, so browser inputs belong in a JSON body
* instead of a percent-encoded URL query string.
*/
export const trpcJsonBodyHttpClientOptions = {
methodOverride: 'POST',
} as const;
/** POST may execute queries, while tRPC still rejects mutations sent as GET. */
export const trpcJsonBodyHttpServerOptions = {
allowMethodOverride: true,
} as const;
+1
View File
@@ -27,3 +27,4 @@ export * from './auth/accountIconProjection.js';
export * from './logging/formatLegacyLogHtml.js';
export * from './gateway/profileStatus.js';
export * from './game/accessPenalty.js';
export * from './http/trpcTransport.js';