Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
fix(v1): check if url is string in blocklistMiddleware
Gergo Moriczb4dbf7553750
diff --git a/apps/api/src/routes/v1.ts b/apps/api/src/routes/v1.tsindex daa9bf433..484ab5dc4 100644--- a/apps/api/src/routes/v1.ts+++ b/apps/api/src/routes/v1.ts@@ -83,7 +83,7 @@ function idempotencyMiddleware(req: Request, res: Response, next: NextFunction)}function blocklistMiddleware(req: Request, res: Response, next: NextFunction) {- if (req.body.url && isUrlBlocked(req.body.url)) {+ if (typeof req.body.url === "string" && isUrlBlocked(req.body.url)) {if (!res.headersSent) {return res.status(403).json({ success: false, error: "URL is blocked. Firecrawl currently does not support social media scraping due to policy restrictions." });}