mirror of
https://github.com/unraid/api.git
synced 2026-01-09 01:59:57 -06:00
fix: log the current origin
This commit is contained in:
@@ -116,6 +116,7 @@ app.use(cors({
|
||||
// Get currently allowed origins
|
||||
const allowedOrigins = getAllowedOrigins();
|
||||
log.debug(`Allowed origins: ${allowedOrigins.join(', ')}`);
|
||||
log.debug(`Current origin: ${origin ?? ''}`);
|
||||
|
||||
// Disallow requests with no origin
|
||||
// (like mobile apps, curl requests or viewing /graphql directly)
|
||||
|
||||
Reference in New Issue
Block a user