[GH-ISSUE #162] Cors policy does not allow loading over lan #94

Closed
opened 2026-10-15 18:04:23 +00:00 by bsakaguchi · 6 comments
Owner

Originally created by @Dalethium on GitHub (Sep 17, 2023).
Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Extras/issues/162

Access to fetch at 'http://192.168.6.222:5100/api/modules' from origin 'http://192.168.6.216:8000' has been blocked by CORS policy: Request header field bypass-tunnel-reminder is not allowed by Access-Control-Allow-Headers in preflight response.

Simple steps to reproduct:

Host sillytavern on one machine, and extras on another, try connecting them.

Originally created by @Dalethium on GitHub (Sep 17, 2023). Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Extras/issues/162 `` Access to fetch at 'http://192.168.6.222:5100/api/modules' from origin 'http://192.168.6.216:8000' has been blocked by CORS policy: Request header field bypass-tunnel-reminder is not allowed by Access-Control-Allow-Headers in preflight response. `` Simple steps to reproduct: Host sillytavern on one machine, and extras on another, try connecting them.
Author
Owner

@Cohee1207 commented on GitHub (Sep 17, 2023):

You are likely not running extras with --listen flag

<!-- gh-comment-id:1722446917 --> @Cohee1207 commented on GitHub (Sep 17, 2023): You are likely not running extras with --listen flag
Author
Owner

@Dalethium commented on GitHub (Sep 17, 2023):

python server.py --enable-modules=caption,summarize,classify,sd,chromadb --listen --chroma-folder=/chromadb/ --chroma-persist --secure --classification-model=joeddav/distilbert-base-uncased-go-emotions-student --cuda

is my startup command, I am also running via docker.

<!-- gh-comment-id:1722447060 --> @Dalethium commented on GitHub (Sep 17, 2023): `` python server.py --enable-modules=caption,summarize,classify,sd,chromadb --listen --chroma-folder=/chromadb/ --chroma-persist --secure --classification-model=joeddav/distilbert-base-uncased-go-emotions-student --cuda `` is my startup command, I am also running via docker.
Author
Owner

@Cohee1207 commented on GitHub (Sep 17, 2023):

Do you have a 5100 port open on your extras host device?

<!-- gh-comment-id:1722447384 --> @Cohee1207 commented on GitHub (Sep 17, 2023): Do you have a 5100 port open on your extras host device?
Author
Owner

@Dalethium commented on GitHub (Sep 17, 2023):

loading http://192.168.6.222:5100/ returns {"error":"401: Invalid API key"} showing the port is open, yep.

If this is not reproducable on your end please let me know, I'll investigate further on my end!

<!-- gh-comment-id:1722447632 --> @Dalethium commented on GitHub (Sep 17, 2023): loading http://192.168.6.222:5100/ returns ``{"error":"401: Invalid API key"}`` showing the port is open, yep. If this is not reproducable on your end please let me know, I'll investigate further on my end!
Author
Owner

@Dalethium commented on GitHub (Sep 17, 2023):

Fixed this for my local instance in #164, let me know if you need anything else!

<!-- gh-comment-id:1722462079 --> @Dalethium commented on GitHub (Sep 17, 2023): Fixed this for my local instance in #164, let me know if you need anything else!
Author
Owner

@Dalethium commented on GitHub (Sep 17, 2023):

Fixed by github.com/SillyTavern/SillyTavern@359277deb5

<!-- gh-comment-id:1722467737 --> @Dalethium commented on GitHub (Sep 17, 2023): Fixed by https://github.com/SillyTavern/SillyTavern/commit/359277deb55af62baca5e439bac50fb7f4abd83d
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
SillyTavern/SillyTavern-Extras#94
No description provided.