-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
24 lines (22 loc) · 1.66 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<script>
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function () {
if (xmlhttp.readyState == XMLHttpRequest.DONE) {
console.log(xmlhttp.status, xmlhttp.responseText);
}
}
xmlhttp.open('GET', 'http://localhost:8000/api/accounts');
xmlhttp.setRequestHeader('Authorization', 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjBmNGIxNWQ4MjQ2OTZhM2E3ZjM2YzYwMGU2NGRhYjQ4MmY4NjI2YzEwMDFlODBlNWMzMmE2YTI4YjZhMGMzYzZlM2EwZWI5YWY0YTFiZmFiIn0.eyJhdWQiOiIyIiwianRpIjoiMGY0YjE1ZDgyNDY5NmEzYTdmMzZjNjAwZTY0ZGFiNDgyZjg2MjZjMTAwMWU4MGU1YzMyYTZhMjhiNmEwYzNjNmUzYTBlYjlhZjRhMWJmYWIiLCJpYXQiOjE0ODMzNzI4MzUsIm5iZiI6MTQ4MzM3MjgzNSwiZXhwIjoxNTE0OTA4ODM0LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.exqUPkDLGy6gXp-SZnrJucp8M91KsqZvRr9SeLnQOLHQA7pVZqS3czTTIF1IuQ7Ni1zKcJd_9xDm8SfKKfnQe3qjNJdfTzJfWrP0kaKc4y3ODWX6gO8TtibKC4asiQ2-xR-cYlwA0__fAt31d3OHuyXQbyOaEH1NieaUpFlrZxe2iRLkZk1B-UoKJRBkPG7eR-ymZqvN0VLdojFpFwKaCKHmO5VhEKadoyxNQ8aqoXHCxCe97j9TZ3ij0sSEN5ZLrM7kRj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