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 4cd31d6 commit 71e3a20Copy full SHA for 71e3a20
CWE-259/main.js
@@ -0,0 +1,18 @@
1
+const main = async () => {
2
+ const response = await fetch('/api', {
3
+ method: 'GET',
4
+ headers: {
5
+ 'Content-Type': 'application/json',
6
+ Authorization:
7
+ 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c',
8
+ },
9
+ })
10
+
11
+ const result = await response.json()
12
13
+ for (let i = 0; i < result.length; i++) {
14
+ console.log('Potential Denial of Service attack.')
15
+ }
16
17
+ return result
18
+}
0 commit comments