[GH-ISSUE #1154] CORS problem with Koel Remote #665

Closed
opened 2026-02-26 02:33:54 +03:00 by kerem · 2 comments
Owner

Originally created by @vmario89 on GitHub (Dec 27, 2019).
Original GitHub issue: https://github.com/koel/koel/issues/1154

sorry for duplicate. i re-opened this as a follow-up of https://github.com/phanan/koel/issues/1151


hi. this commit fixed the visibilty of the service but it throws an error in browser console now. It has to do with MIME type and CORS headers. I am not able to find the issue because it points to the option "nosniff" which i did not set at all.

grafik

curl -i https://music.leyghis.de/remote
HTTP/1.1 200 OK
Date: Fri, 27 Dec 2019 12:53:08 GMT
Server: Apache/2.4.29 (Ubuntu)
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
X-Frame-Options: DENY
Host: 127.0.0.1:8000
Cache-Control: no-cache, private
Content-Type: text/html; charset=UTF-8
Vary: Accept-Encoding
Access-Control-Allow-Origin: *
Referrer-Policy: origin-when-cross-origin
Transfer-Encoding: chunked

I already played a lot the header vaules (removed all of them) but no difference

Originally created by @vmario89 on GitHub (Dec 27, 2019). Original GitHub issue: https://github.com/koel/koel/issues/1154 sorry for duplicate. i re-opened this as a follow-up of https://github.com/phanan/koel/issues/1151 ---------- hi. this commit fixed the visibilty of the service but it throws an error in browser console now. It has to do with MIME type and CORS headers. I am not able to find the issue because it points to the option "nosniff" which i did not set at all. ![grafik](https://user-images.githubusercontent.com/5631071/71517938-a07b1f00-28b0-11ea-80ec-59d57c74be68.png) ``` curl -i https://music.leyghis.de/remote HTTP/1.1 200 OK Date: Fri, 27 Dec 2019 12:53:08 GMT Server: Apache/2.4.29 (Ubuntu) Strict-Transport-Security: max-age=63072000; includeSubDomains; preload X-Frame-Options: DENY Host: 127.0.0.1:8000 Cache-Control: no-cache, private Content-Type: text/html; charset=UTF-8 Vary: Accept-Encoding Access-Control-Allow-Origin: * Referrer-Policy: origin-when-cross-origin Transfer-Encoding: chunked ``` I already played a lot the header vaules (removed all of them) but no difference
kerem closed this issue 2026-02-26 02:33:54 +03:00
Author
Owner

@vmario89 commented on GitHub (Jan 5, 2020):

hi, found the issue. The web server error with CORS disappeared but it did not work either. But now i found to enable some settings in Pusher. I enabled "client events"

grafik

Now the remote controller works. But only if Koel session created in web browser before. Using the desktop application the remote session is not found :-(

<!-- gh-comment-id:570961236 --> @vmario89 commented on GitHub (Jan 5, 2020): hi, found the issue. The web server error with CORS disappeared but it did not work either. But now i found to enable some settings in Pusher. I enabled "client events" ![grafik](https://user-images.githubusercontent.com/5631071/71788003-97135480-301e-11ea-9bcd-cbd688c616e8.png) Now the remote controller works. But only if Koel session created in web browser before. Using the desktop application the remote session is not found :-(
Author
Owner

@phanan commented on GitHub (Jan 8, 2020):

Thanks for looking into this!

Using the desktop application the remote session is not found :-(

That's expected. I've not implemented Pusher for the desktop app yet (nor do I place it too high on my list). So I'm going to go ahead and close this.

<!-- gh-comment-id:572075952 --> @phanan commented on GitHub (Jan 8, 2020): Thanks for looking into this! > Using the desktop application the remote session is not found :-( That's expected. I've not implemented Pusher for the desktop app yet (nor do I place it too high on my list). So I'm going to go ahead and close this.
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/koel-koel#665
No description provided.