We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c12341 commit fd9c8afCopy full SHA for fd9c8af
middleware/handle-invalid-paths.js
@@ -49,7 +49,7 @@ export default function handleInvalidPaths(req, res, next) {
49
}
50
51
// Prevent various malicious injection attacks targeting Next.js
52
- if (req.path.match(/^\/_next[^/]/)) {
+ if (req.path.match(/^\/_next[^/]/) || req.path === '/_next/data' || req.path === '/_next/data/') {
53
return next(404)
54
55
0 commit comments