Skip to content

Commit 598305a

Browse files
committed
fix: revert adding turnstile verification
This reverts commit 0afb152.
1 parent 0afb152 commit 598305a

File tree

2 files changed

+14
-49
lines changed

2 files changed

+14
-49
lines changed

netlify/edge-functions/handle-challenge.ts

Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export default async (request: Request) => {
2+
const userAgent = request.headers.get('user-agent') || ''
3+
4+
if (!userAgent.length) {
5+
return new Response('Access Denied: User-Agent is required', {
6+
status: 403,
7+
headers: {
8+
'Content-Type': 'text/plain',
9+
},
10+
})
11+
}
12+
}
13+
14+
export const config = { path: '/*' }

0 commit comments

Comments
 (0)