Spaces:
Runtime error
Runtime error
aymanemalih
commited on
Commit
•
b78fa21
1
Parent(s):
b38580d
Update main.py
Browse files
main.py
CHANGED
@@ -73,7 +73,7 @@ def filtergpt(text):
|
|
73 |
@app.route('/chat', methods=['OPTIONS'])
|
74 |
def options():
|
75 |
response = make_response()
|
76 |
-
response.headers.add("Access-Control-Allow-Origin", "
|
77 |
response.headers.add("Access-Control-Allow-Methods", "POST")
|
78 |
response.headers.add("Access-Control-Allow-Headers", "Content-Type, Authorization")
|
79 |
response.headers.add("Access-Control-Allow-Credentials", "true")
|
|
|
73 |
@app.route('/chat', methods=['OPTIONS'])
|
74 |
def options():
|
75 |
response = make_response()
|
76 |
+
response.headers.add("Access-Control-Allow-Origin", "*")
|
77 |
response.headers.add("Access-Control-Allow-Methods", "POST")
|
78 |
response.headers.add("Access-Control-Allow-Headers", "Content-Type, Authorization")
|
79 |
response.headers.add("Access-Control-Allow-Credentials", "true")
|