Spaces:
Running
Running
Update index.html
Browse files- index.html +4 -1
index.html
CHANGED
|
@@ -45,7 +45,10 @@
|
|
| 45 |
},
|
| 46 |
data: data
|
| 47 |
};
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
| 49 |
.then((response) => {
|
| 50 |
console.log(JSON.stringify(response.data));
|
| 51 |
document.getElementById("answer").textContent = response.data;
|
|
|
|
| 45 |
},
|
| 46 |
data: data
|
| 47 |
};
|
| 48 |
+
const agent = new https.Agent({
|
| 49 |
+
rejectUnauthorized: false
|
| 50 |
+
});
|
| 51 |
+
axios.request(config, { httpsAgent: agent })
|
| 52 |
.then((response) => {
|
| 53 |
console.log(JSON.stringify(response.data));
|
| 54 |
document.getElementById("answer").textContent = response.data;
|