File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export function useWebSocket() {
4040 setStatus ( 'connecting' )
4141
4242 // Get the token (currently hardcoded as "token", same as used in API calls).
43- // When Authelia is implemented, this should get the actual JWT token.
43+ // TODO: When Authelia is implemented, this should get the actual JWT token.
4444 const token = 'token'
4545
4646 const wsEnvUrl = import . meta. env . VITE_WS_URL as string | undefined
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ export default defineConfig({
1919 proxy : {
2020 '/api' : {
2121 target : process . env . VITE_API_URL || 'http://localhost:11764' ,
22- changeOrigin : true ,
23- ws : true ,
22+ changeOrigin : true , // Needed for CORS
23+ ws : true , // Enable WebSocket proxying
2424 } ,
2525 '/test' : {
2626 target : process . env . VITE_API_URL || 'http://localhost:11764' ,
@@ -41,8 +41,8 @@ export default defineConfig({
4141 proxy : {
4242 '/api' : {
4343 target : process . env . VITE_API_URL || 'http://localhost:11764' ,
44- changeOrigin : true ,
45- ws : true ,
44+ changeOrigin : true , // Needed for CORS
45+ ws : true , // Enable WebSocket proxying
4646 } ,
4747 '/test' : {
4848 target : process . env . VITE_API_URL || 'http://localhost:11764' ,
You can’t perform that action at this time.
0 commit comments