From b10465e353ef2411fde3d6ee07010aceb9216fbd Mon Sep 17 00:00:00 2001 From: ='fauz <='fauzgabriel@gmail.com> Date: Wed, 2 Jul 2025 11:33:57 +0700 Subject: [PATCH] cors --- run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run.py b/run.py index b5cb46f..c45ce9d 100644 --- a/run.py +++ b/run.py @@ -1,5 +1,7 @@ from app import create_app +from flask_cors import CORS app = create_app() +CORS(app) def swap_latlon(coords): @@ -12,4 +14,4 @@ def swap_latlon(coords): ] if __name__ == '__main__': - app.run(debug=True, port=5000) \ No newline at end of file + app.run(debug=True, host="0.0.0.0", port=5000) \ No newline at end of file