spec: add test for basic authentication
This commit is contained in:
parent
06834b723b
commit
2d190b9952
3 changed files with 42 additions and 0 deletions
17
spec/fixtures/pages/basic-auth.html
vendored
Normal file
17
spec/fixtures/pages/basic-auth.html
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
<html>
|
||||
<body>
|
||||
<script src='http://127.0.0.1:62342/jquery.js'></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: "http://127.0.0.1:62342",
|
||||
headers: {
|
||||
"Authorization": "Basic " + btoa("test:test")
|
||||
},
|
||||
success: function (result){
|
||||
require('ipc').send('console-message', result);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue