Login fix

This commit is contained in:
2025-02-07 20:07:54 +01:00
parent 6ba4c1b843
commit 75c9d5f349
3 changed files with 87 additions and 87 deletions

View File

@ -74,7 +74,7 @@ export const useGameStore = defineStore('game', {
},
initConnection() {
this.connection = io(config.server_endpoint, {
secure: !config.environment.includes('development'),
secure: (config.environment === 'production'),
withCredentials: true,
transports: ['websocket'],
reconnectionAttempts: 5