[GH-ISSUE #3] CORS issues if RVC is hosted on a different subdomain #1

Closed
opened 2026-10-15 13:26:54 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @TheRealPSV on GitHub (May 28, 2025).
Original GitHub issue: https://github.com/SillyTavern/Extension-RVC/issues/3

If ST is hosted on sillytavern.example.com, while rvc-python is hosted on rvc-python.example.com, the extension has an issue with CORS when trying to connect to the RVC server, where CORS prevents ST from hitting the RVC endpoint.

Originally created by @TheRealPSV on GitHub (May 28, 2025). Original GitHub issue: https://github.com/SillyTavern/Extension-RVC/issues/3 If ST is hosted on `sillytavern.example.com`, while rvc-python is hosted on `rvc-python.example.com`, the extension has an issue with CORS when trying to connect to the RVC server, where CORS prevents ST from hitting the RVC endpoint.
Author
Owner

@Cohee1207 commented on GitHub (May 28, 2025):

I think this has to be adjusted on RVC's side by allowing CORS from all domains. Nothing we could really do here except wrapping the endpoint with a local CORS proxy (not a good solution).

<!-- gh-comment-id:2915515572 --> @Cohee1207 commented on GitHub (May 28, 2025): I think this has to be adjusted on RVC's side by allowing CORS from all domains. Nothing we could really do here except wrapping the endpoint with a local CORS proxy (not a good solution).
Author
Owner

@TheRealPSV commented on GitHub (May 29, 2025):

That makes sense, but it seems like rvc-python has CORS set to *, which should allow everything through, which makes this extra strange. See here: github.com/daswer123/rvc-python@cff3ffbe99/rvc_python/api.py (L199)

<!-- gh-comment-id:2918303508 --> @TheRealPSV commented on GitHub (May 29, 2025): That makes sense, but it seems like rvc-python has CORS set to `*`, which should allow everything through, which makes this extra strange. See here: https://github.com/daswer123/rvc-python/blob/cff3ffbe99ce2e062831e4377f8cef587d0f38f9/rvc_python/api.py#L199
Author
Owner

@TheRealPSV commented on GitHub (May 29, 2025):

Okay, looks like this is on my end; I think NGINX/Authelia are the root cause here. I'll close this.

<!-- gh-comment-id:2918315975 --> @TheRealPSV commented on GitHub (May 29, 2025): Okay, looks like this is on my end; I think NGINX/Authelia are the root cause here. I'll close this.
Sign in to join this conversation.
No labels
pull-request
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/Extension-RVC#1
No description provided.