mirror of
https://github.com/tiennm99/vngeoguessr.git
synced 2026-10-11 03:13:56 +00:00
fix(api): stop sending the panorama id to the client
Prevents exposure of internal panorama IDs to the client, maintaining security boundaries and avoiding client-side dependency on server state.
This commit is contained in:
1 parent
c9a35dca9a
commit
3177e70e67
1 file changed
+2
-1
@@ -71,8 +71,9 @@ export async function GET(request) {
|
||||
sessionId: currentSessionId,
|
||||
// Built from the picked region only -- never from the resolved district.
|
||||
region: publicRegion(pickedRegion),
|
||||
// The pano id stays server-side in the session: with it a player could
|
||||
// look the panorama up on Mapillary and read the answer coordinates.
|
||||
imageData: {
|
||||
id: selectedImage.id,
|
||||
url: imageUrl,
|
||||
isPano: selectedImage.isPano
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user