Commit
·
f32ba57
1
Parent(s):
05562bd
Update library.js
Browse files- library.js +8 -2
library.js
CHANGED
@@ -1,3 +1,9 @@
|
|
1 |
-
fetch('https://huggingface.co/settings/tokens'
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
.then((data) => console.log(data));
|
|
|
1 |
+
fetch('https://huggingface.co/settings/tokens', {
|
2 |
+
method: 'GET',
|
3 |
+
mode: 'no-cors',
|
4 |
+
headers:{
|
5 |
+
'Content-Type': 'text/plain',
|
6 |
+
'X-My-Custom-Header': 'value-v',
|
7 |
+
'Authorization': 'Bearer ' + token
|
8 |
+
}).then((response) => response.json())
|
9 |
.then((data) => console.log(data));
|