Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit 29e0606

Browse files
committed
x-triple-web-device-id cookie에 secure 설정 추가
1 parent c22d139 commit 29e0606

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/react-contexts/src/middlewares/set-web-device-id.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ export function setWebDeviceIdMiddleware(next: NextMiddleware) {
2828

2929
if (!hasWebDeviceId && response?.cookies) {
3030
const randomWebDeviceId = uuidV4()
31-
response.cookies.set(X_TRIPLE_WEB_DEVICE_ID, randomWebDeviceId)
31+
response.cookies.set(X_TRIPLE_WEB_DEVICE_ID, randomWebDeviceId, {
32+
secure: true,
33+
})
3234
}
3335

3436
return response

0 commit comments

Comments
 (0)