Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 3a19619

Browse files
committed
fix: mitigate
1 parent 57da20c commit 3a19619

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

server/middleware/01.secure.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default eventHandler(async (event) => {
2+
const exclude = event?.req?.headers?.['x-middleware-subrequest']
3+
if (exclude) {
4+
throw createError({
5+
statusCode: 400,
6+
})
7+
}
8+
})

0 commit comments

Comments
 (0)