Spaces:
Running
Running
Update index.html
Browse files- index.html +2 -5
index.html
CHANGED
@@ -40,14 +40,11 @@
|
|
40 |
url: 'http://7e2d-34-136-146-180.ngrok-free.app/generate',
|
41 |
headers: {
|
42 |
'Content-Type': 'application/json',
|
43 |
-
"Access-Control-Allow-Origin": "*",
|
44 |
-
"ngrok-skip-browser-warning": 'any'
|
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));
|
|
|
40 |
url: 'http://7e2d-34-136-146-180.ngrok-free.app/generate',
|
41 |
headers: {
|
42 |
'Content-Type': 'application/json',
|
43 |
+
// "Access-Control-Allow-Origin": "*",
|
44 |
+
// "ngrok-skip-browser-warning": 'any'
|
45 |
},
|
46 |
data: data
|
47 |
};
|
|
|
|
|
|
|
48 |
axios.request(config, { httpsAgent: agent })
|
49 |
.then((response) => {
|
50 |
console.log(JSON.stringify(response.data));
|