mirror of
https://github.com/FoxxMD/multi-scrobbler.git
synced 2026-04-28 03:39:54 +00:00
Merge pull request #563 from FoxxMD/middlewareFix
fix: Web endpoint fix
This commit is contained in:
commit
6f15f15722
2 changed files with 4 additions and 0 deletions
|
|
@ -63,4 +63,5 @@ export const nonEmptyBody = (logger: Logger, origin: string = 'Origin'): Express
|
|||
res.status(400).send('Invalid Content-Type. Must be either application/json or a text wildcard (like text/plain)');
|
||||
return;
|
||||
}
|
||||
next();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,6 +32,9 @@ export default defineConfig(() => {
|
|||
}
|
||||
console.debug(`[VITE] BASE_URL ENV: ${process.env.BASE_URL} | Base Url String: ${baseUrlStr}`);
|
||||
return {
|
||||
server: {
|
||||
allowedHosts: (true as true)
|
||||
},
|
||||
esbuild: {
|
||||
minifyIdentifiers: false
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue