|
|
@ -29,7 +29,7 @@ app = Flask(__name__) |
|
|
|
CORS(app) |
|
|
|
CORS(app) |
|
|
|
# Enable CORS for specific routes |
|
|
|
# Enable CORS for specific routes |
|
|
|
# CORS(app, resources={ |
|
|
|
# CORS(app, resources={ |
|
|
|
# r"/api/*": {"origins": "*"} # Allows CORS for all `/api/` routes |
|
|
|
# r"*": {"origins": "*"} # Allows CORS for all `/api/` routes |
|
|
|
# }) |
|
|
|
# }) |
|
|
|
# Set configuration directly on the app instance |
|
|
|
# Set configuration directly on the app instance |
|
|
|
app.config['ALLOWED_EXTENSIONS'] = {'png', 'jpg', 'jpeg', 'gif','pdf'} |
|
|
|
app.config['ALLOWED_EXTENSIONS'] = {'png', 'jpg', 'jpeg', 'gif','pdf'} |
|
|
|