From 3c0d84c628d5409232b5bfad556865590a9efb61 Mon Sep 17 00:00:00 2001 From: Alfred Melch Date: Fri, 3 Jan 2020 02:06:15 +0100 Subject: [PATCH] Add cors --- srv/ebermergen/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/srv/ebermergen/__init__.py b/srv/ebermergen/__init__.py index da0a0d9..fda81e6 100644 --- a/srv/ebermergen/__init__.py +++ b/srv/ebermergen/__init__.py @@ -1,9 +1,11 @@ import json from flask import Flask, jsonify +from flask_cors import CORS from .lib import generate_map app = Flask(__name__) +CORS(app) @app.route('/')