saman shrestha commited on
Commit
63900d0
·
1 Parent(s): 335dc24

fix: testing with credential allow orogin"

Browse files
Files changed (1) hide show
  1. flask_app.py +3 -1
flask_app.py CHANGED
@@ -9,7 +9,9 @@ import re
9
  import pandas as pd
10
 
11
  app = Flask(__name__)
12
- CORS(app, supports_credentials=True) # Add this line to enable CORS
 
 
13
  app.secret_key = os.urandom(24) # Set a secret key for session encryption
14
  app.config["SESSION_COOKIE_SAMESITE"] = "None"
15
  app.config["SESSION_COOKIE_SECURE"] = True
 
9
  import pandas as pd
10
 
11
  app = Flask(__name__)
12
+ CORS(app, supports_credentials=True, origins="*", allow_headers=["Content-Type", "Authorization", "Access-Control-Allow-Credentials"])
13
+ app.config['SESSION_COOKIE_SAMESITE'] = 'None'
14
+ app.config['SESSION_COOKIE_SECURE'] = True
15
  app.secret_key = os.urandom(24) # Set a secret key for session encryption
16
  app.config["SESSION_COOKIE_SAMESITE"] = "None"
17
  app.config["SESSION_COOKIE_SECURE"] = True