from flask import Flask, render_template
from flask_cors import CORS # Import CORS
app = Flask(__name__)
# Enable CORS for the entire app
CORS(app)
@app.route('/')defhome():
return render_template('index.html')
if __name__ == "__main__":
app.run(debug=False)