mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-29 15:57:00 +02:00
fix(core): Update posthog proxy (no-changelog) (#22328)
This commit is contained in:
parent
5cb594d7ef
commit
11d38504d8
|
|
@ -72,7 +72,7 @@ export class PostHogController {
|
|||
return await this.proxy(req, res, next);
|
||||
}
|
||||
|
||||
// Static files - specific endpoint for array.js
|
||||
// Static files - specific endpoint for array.js and lazy-recorder.js
|
||||
@Get('/static/array.js', {
|
||||
skipAuth: true,
|
||||
usesTemplates: true,
|
||||
|
|
@ -82,6 +82,15 @@ export class PostHogController {
|
|||
void this.proxy(req, res, next);
|
||||
}
|
||||
|
||||
@Get('/static/lazy-recorder.js', {
|
||||
skipAuth: true,
|
||||
usesTemplates: true,
|
||||
rateLimit: { limit: 50, windowMs: 60_000 },
|
||||
})
|
||||
staticLazyRecorderJs(req: AuthenticatedRequest, res: Response, next: NextFunction) {
|
||||
void this.proxy(req, res, next);
|
||||
}
|
||||
|
||||
// Configuration endpoints for array.js
|
||||
@Get('/array/:apiKey/config.js', {
|
||||
skipAuth: true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user