Spaces:
Sleeping
Sleeping
Update templates/app.html
Browse files- templates/app.html +1 -1
templates/app.html
CHANGED
|
@@ -39,7 +39,7 @@
|
|
| 39 |
|
| 40 |
function sendMessage(msgContent) {
|
| 41 |
let heads = new Headers();
|
| 42 |
-
let creds = window.btoa({{ session[
|
| 43 |
heads.append("Authorization", `Basic ${creds}`);
|
| 44 |
heads.append("Content-Type", "application/json");
|
| 45 |
fetch("/api/messages", {
|
|
|
|
| 39 |
|
| 40 |
function sendMessage(msgContent) {
|
| 41 |
let heads = new Headers();
|
| 42 |
+
let creds = window.btoa("{{ session['username'] }}" + ":" + "{{ session['password'] }}")
|
| 43 |
heads.append("Authorization", `Basic ${creds}`);
|
| 44 |
heads.append("Content-Type", "application/json");
|
| 45 |
fetch("/api/messages", {
|