Spaces:
Sleeping
Sleeping
saman shrestha
commited on
Commit
·
77cdf80
1
Parent(s):
63900d0
fix: testing with expose header
Browse files- flask_app.py +1 -1
flask_app.py
CHANGED
|
@@ -9,7 +9,7 @@ import re
|
|
| 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
|
|
|
|
| 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"], expose_headers=["Set-Cookie"])
|
| 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
|