Spaces:
Runtime error
Runtime error
fix CORS
Browse files- templates/index.html +2 -3
templates/index.html
CHANGED
|
@@ -194,9 +194,8 @@
|
|
| 194 |
type: 'POST',
|
| 195 |
url: '/summarize',
|
| 196 |
data: JSON.stringify(data),
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
dataType: 'json',
|
| 200 |
xhrFields: {
|
| 201 |
withCredentials: true
|
| 202 |
},
|
|
|
|
| 194 |
type: 'POST',
|
| 195 |
url: '/summarize',
|
| 196 |
data: JSON.stringify(data),
|
| 197 |
+
// contentType: "jsonp",
|
| 198 |
+
dataType: 'jsonp',
|
|
|
|
| 199 |
xhrFields: {
|
| 200 |
withCredentials: true
|
| 201 |
},
|