Skip to content

Commit

Permalink
cors fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansurf committed May 27, 2024
1 parent 541def9 commit a59b034
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/backend/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -11,6 +12,7 @@
import urllib.parse

app = Flask(__name__)
CORS(app)

with open('../../config.json') as f:
json_config = json.load(f)
Expand Down

0 comments on commit a59b034

Please sign in to comment.