Spaces:
Runtime error
Runtime error
yasmine hemmati commited on
Commit ·
d49e2d0
1
Parent(s): e308471
Fix CORS to allow feedback routes (was restricted to /api/* only)
Browse files- flask_app.py +1 -1
flask_app.py
CHANGED
|
@@ -97,7 +97,7 @@ app.config['JWT_HEADER_TYPE'] = 'Bearer'
|
|
| 97 |
app.config['JWT_ACCESS_TOKEN_EXPIRES'] = False # Tokens don't expire in development
|
| 98 |
|
| 99 |
# Configure CORS to handle OPTIONS requests properly
|
| 100 |
-
CORS(app, resources={r"/
|
| 101 |
|
| 102 |
# Initialize JWT
|
| 103 |
jwt = JWTManager(app)
|
|
|
|
| 97 |
app.config['JWT_ACCESS_TOKEN_EXPIRES'] = False # Tokens don't expire in development
|
| 98 |
|
| 99 |
# Configure CORS to handle OPTIONS requests properly
|
| 100 |
+
CORS(app, resources={r"/*": {"origins": "*"}}, supports_credentials=True)
|
| 101 |
|
| 102 |
# Initialize JWT
|
| 103 |
jwt = JWTManager(app)
|