cors
This commit is contained in:
parent
86a01322ec
commit
b10465e353
4
run.py
4
run.py
@ -1,5 +1,7 @@
|
|||||||
from app import create_app
|
from app import create_app
|
||||||
|
from flask_cors import CORS
|
||||||
app = create_app()
|
app = create_app()
|
||||||
|
CORS(app)
|
||||||
|
|
||||||
|
|
||||||
def swap_latlon(coords):
|
def swap_latlon(coords):
|
||||||
@ -12,4 +14,4 @@ def swap_latlon(coords):
|
|||||||
]
|
]
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(debug=True, port=5000)
|
app.run(debug=True, host="0.0.0.0", port=5000)
|
||||||
Loading…
Reference in New Issue
Block a user