Fix coookie reading on the backend.