aymanemalih commited on
Commit
b78fa21
1 Parent(s): b38580d

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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", "http://localhost:3000")
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")