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 |
-
headers: {'Access-Control-Allow-Origin': '
|
198 |
contentType: "application/json",
|
199 |
dataType: 'json',
|
200 |
xhrFields: {
|
|
|
194 |
type: 'POST',
|
195 |
url: '/summarize',
|
196 |
data: JSON.stringify(data),
|
197 |
+
headers: {'Access-Control-Allow-Origin': 'http://0.0.0.0:7860'},
|
198 |
contentType: "application/json",
|
199 |
dataType: 'json',
|
200 |
xhrFields: {
|