diff --git a/requirements.txt b/requirements.txt index 7ab7f49..dac7bc4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ Flask==3.0.3 +Flask_Cors==4.0.1 geopy==2.4.1 openmeteo_requests==1.2.0 pandas==2.2.2 diff --git a/src/backend/server.py b/src/backend/server.py index 42cb97c..43d5236 100644 --- a/src/backend/server.py +++ b/src/backend/server.py @@ -3,6 +3,7 @@ """ from flask import Flask, send_file, send_from_directory, request +from flask_cors import CORS import subprocess import json import helper @@ -11,6 +12,7 @@ import urllib.parse app = Flask(__name__) +CORS(app) with open('../../config.json') as f: json_config = json.load(f)