[GH-ISSUE #119] CORS issues still present? #73

Closed
opened 2026-02-28 14:25:08 +03:00 by kerem · 5 comments
Owner

Originally created by @thilojaeggi on GitHub (Oct 6, 2024).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/119

So I just cloned the latest version and tried to connect to the websocket in my flutter app but keep getting a connection refused error.
This is my config:

device_name: nordan
log_level: debug
credentials:
  type: zeroconf
device_type: speaker
server:
  enabled: true
  address: ""
  port: 3678
  allow_origin: "*"
Originally created by @thilojaeggi on GitHub (Oct 6, 2024). Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/119 So I just cloned the latest version and tried to connect to the websocket in my flutter app but keep getting a connection refused error. This is my config: ``` device_name: nordan log_level: debug credentials: type: zeroconf device_type: speaker server: enabled: true address: "" port: 3678 allow_origin: "*" ```
kerem closed this issue 2026-02-28 14:25:09 +03:00
Author
Owner

@thilojaeggi commented on GitHub (Oct 6, 2024):

Weird, with the pre built binary for v0.0.17.1 it works?

<!-- gh-comment-id:2395606237 --> @thilojaeggi commented on GitHub (Oct 6, 2024): Weird, with the pre built binary for [v0.0.17.1](https://github.com/devgianlu/go-librespot/releases/tag/v0.0.17.1) it works?
Author
Owner

@aykevl commented on GitHub (Oct 7, 2024):

What does your log say?
It should say something like the following:

INFO[0000] api server listening on [::]:3678       

Also, "connection refused" is probably not a CORS issue.

<!-- gh-comment-id:2397262126 --> @aykevl commented on GitHub (Oct 7, 2024): What does your log say? It should say something like the following: ``` INFO[0000] api server listening on [::]:3678 ``` Also, "connection refused" is probably not a CORS issue.
Author
Owner

@devgianlu commented on GitHub (Oct 12, 2024):

@thilojaeggi Please check that the configuration file is being read properly, you can find how to migrate in #103:

The simplest option to keep the previous behavior is by using --config_dir=.. This will keep reading the configuration from the current working directory, and stores the app state there.
To move the configuration to the new location, use:

$ mkdir ~/.config/go-librespot
$ mv credentials.json config.yml ~/.config/go-librespot/

@aykevl I think the README should be updated detailing how the configuration works after #103.

<!-- gh-comment-id:2408629280 --> @devgianlu commented on GitHub (Oct 12, 2024): @thilojaeggi Please check that the configuration file is being read properly, you can find how to migrate in #103: > The simplest option to keep the previous behavior is by using `--config_dir=.`. This will keep reading the configuration from the current working directory, and stores the app state there. To move the configuration to the new location, use: > ``` > $ mkdir ~/.config/go-librespot > $ mv credentials.json config.yml ~/.config/go-librespot/ > ``` @aykevl I think the README should be updated detailing how the configuration works after #103.
Author
Owner

@devgianlu commented on GitHub (Oct 20, 2024):

@thilojaeggi I have updateded the README to have a more detailed explaination on how the configuration works.

I'll be closing this as connection refused is most definitely not a CORS issue. Feel free to open another issue if needed.

<!-- gh-comment-id:2425028309 --> @devgianlu commented on GitHub (Oct 20, 2024): @thilojaeggi I have updateded the README to have a more detailed explaination on how the configuration works. I'll be closing this as `connection refused` is most definitely not a CORS issue. Feel free to open another issue if needed.
Author
Owner

@aykevl commented on GitHub (Oct 21, 2024):

@aykevl I think the README should be updated detailing how the configuration works after #103.

Oops, sorry I missed the other server: configuration in the README! Thanks for fixing!

<!-- gh-comment-id:2426283919 --> @aykevl commented on GitHub (Oct 21, 2024): > @aykevl I think the README should be updated detailing how the configuration works after #103. Oops, sorry I missed the other `server:` configuration in the README! Thanks for fixing!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-librespot#73
No description provided.