mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-20 06:00:40 +01:00
Server: Fix CORS proxy with URLs
Using slashes completely stripped the rest of the URL. Fix that. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
50ebd1cf66
commit
735c4e7268
@ -308,7 +308,7 @@ app.use(function (req, res, next) {
|
||||
if (getConfigValue('enableCorsProxy', false) === true || cliArguments.corsProxy === true) {
|
||||
console.log('Enabling CORS proxy');
|
||||
|
||||
app.use('/proxy/:url', async (req, res) => {
|
||||
app.use('/proxy/:url(*)', async (req, res) => {
|
||||
const url = req.params.url; // get the url from the request path
|
||||
|
||||
// Disallow circular requests
|
||||
|
Loading…
x
Reference in New Issue
Block a user