kennethduong commited on
Commit
8ed5020
·
1 Parent(s): b8fb63a
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -9,7 +9,11 @@ import os
9
  from flask_cors import CORS
10
 
11
  app = Flask(__name__)
12
- CORS(app)
 
 
 
 
13
 
14
  @app.route('/monthly_expense_prediction', methods=['POST'])
15
  def handle_predict():
 
9
  from flask_cors import CORS
10
 
11
  app = Flask(__name__)
12
+ CORS(app, resources={r"/*": {"origins": [
13
+ 'http://localhost:3000',
14
+ 'http://localhost:8080',
15
+ 'https://wealthmate.onrender.com'
16
+ ]}})
17
 
18
  @app.route('/monthly_expense_prediction', methods=['POST'])
19
  def handle_predict():