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